Allow wildcards in permissions model
Opened this issue · 3 comments
BlackAsLight commented
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
Hajime-san commented
I'm concerned about the performance impact while this seems convenient.
justinmchase commented
Would it apply to files created after startup or just resolve the files during startup?
BlackAsLight commented
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.