denoland/deno

Allow wildcards in permissions model

Opened this issue · 3 comments

Sometimes I know I only want my code to be reading and writing files with certain file extensions, but where these files are located doesn't matter that much as the user might be providing its location.

Example

deno run -R='./**/*.what' -W='./**/*.wasm' main.ts

I'm concerned about the performance impact while this seems convenient.

Would it apply to files created after startup or just resolve the files during startup?

Would it apply to files created after startup or just resolve the files during startup?

I imagine it currently checks if it's allowed when the code attempts to open the file. Not at startup. I don't see why this would change.