New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discussion: --allow-exists permission #4895
Comments
I'm not really in favor of adding new permission flag - I think we could use |
I can see We need to consider all future ops that don't do any reading or writing, and aren't as nicely associated with the env. It's not uncommon for something to check the existence of a file. It's a unique permission with unique properties. |
I think #4423 is worrying about some of the same issues. |
I think a lot of the purpose expressed here was addressed by |
For read and write perms, we currently have that:
{ name: "read", path: "<path>"}
implies{ name: "read", path: "child of <path>"}
{ name: "write", path: "<path>"}
implies{ name: "write", path: "child of <path>"}
I propose having an "exists" perm which adds that:
{ name: "read", path: "<path>"}
implies{ name: "exists", path: "<path>"}
{ name: "write", path: "<path>"}
implies{ name: "exists", path: "<path>"}
{ name: "exists", path: "<path>"}
implies{ name: "exists", path: "parent of <path>"}
{ name: "exists", path: "<path>"}
is required by:Deno.cwd()
when<path>
is the CWDDeno.chdir("<path>")
Deno.execPath()
when<path>
is the executable pathJustifications:
The text was updated successfully, but these errors were encountered: