I have a script that accesses files in a sub-directory. It works when you allow all read access, but all of my attempts at giving read access only to that directory have failed. Is there a way to specify directories via relative paths for --allow-read
?
Is there a way to give read permissions for a subdirectory in Deno?
387 views Asked by Mabi19 At
1
The command
gives you read access only to the subdirectory
./resources
so this works:
and this throws an exception:
You can also specify more than one directory in a comma separated list:
If you need write access, it works the same way as for read access:
Reference: https://deno.land/manual/getting_started/permissions