小透明
Deno2mo ago
1 reply
小透明

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
    }
  }
}

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
Was this page helpful?