File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ existence of a given file, and opening or connecting to Unix sockets.
104
104
Access to read files is granted using the ` --allow-read ` (or ` -R ` ) flag, and
105
105
access to write files is granted using the ` --allow-write ` (or ` -W ` ) flag. These
106
106
flags can be specified with a list of paths to allow access to specific files or
107
- directories.
107
+ directories and any subdirectories in them .
108
108
109
109
Definition: ` --allow-read[=<PATH>...] ` or ` -R[=<PATH>...] `
110
110
@@ -116,6 +116,9 @@ deno run --allow-read script.ts
116
116
117
117
# Allow reads from file foo.txt and bar.txt only
118
118
deno run --allow-read=foo.txt,bar.txt script.ts
119
+
120
+ # Allow reads from any file in any subdirectory of ./node_modules
121
+ deno run --allow-read=node_modules script.ts
119
122
```
120
123
121
124
Definition: ` --deny-read[=<PATH>...] `
You can’t perform that action at this time.
0 commit comments