小透明
小透明13h ago

Is Tilde (~) for Home Directory Path Not Supported in --allow-read/--deny-read?

{
"permissions": {
"default": {
"env": true,
"sys": [ "homedir" ],
"read": {
"deny": [ "~/.ssh" ],
"allow": [ ".", "D:/", "C:/" ]
},
"write": true,
"net": true,
"run": true
}
}
}
{
"permissions": {
"default": {
"env": true,
"sys": [ "homedir" ],
"read": {
"deny": [ "~/.ssh" ],
"allow": [ ".", "D:/", "C:/" ]
},
"write": true,
"net": true,
"run": true
}
}
}
Based on the configuration I tested, I found that this results in me being unable to access any of my files. Is it only possible to specify absolute paths at the moment? deno version: 2.5.6
1 Reply
Doctor 🤖
Doctor 🤖13h ago
It's most likely just not supported. Some environment would need to parse the path and replace it.

Did you find this page helpful?