Skip to content

Commit 4025e6d

Browse files
committed
doc: fix relative path mention in --allow-fs
1 parent 58a8eb4 commit 4025e6d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

doc/api/cli.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,12 @@ The valid arguments for the `--allow-fs-read` flag are:
208208
* Multiple paths can be allowed using multiple `--allow-fs-read` flags.
209209
Example `--allow-fs-read=/folder1/ --allow-fs-read=/folder1/`
210210

211-
Paths delimited by comma (`,`) are no longer allowed.
212-
When passing a single flag with a comma a warning will be displayed.
213-
214211
Examples can be found in the [File System Permissions][] documentation.
215212

216-
Relative paths are NOT yet supported by the CLI flag.
217-
218213
The initializer module also needs to be allowed. Consider the following example:
219214

220215
```console
221-
$ node --experimental-permission t.js
216+
$ node --experimental-permission index.js
222217
node:internal/modules/cjs/loader:162
223218
const result = internalModuleStat(receiver, filename);
224219
^
@@ -231,7 +226,7 @@ Error: Access to this API has been restricted
231226
at node:internal/main/run_main_module:23:47 {
232227
code: 'ERR_ACCESS_DENIED',
233228
permission: 'FileSystemRead',
234-
resource: '/Users/rafaelgss/repos/os/node/t.js'
229+
resource: '/Users/rafaelgss/repos/os/node/index.js'
235230
}
236231
```
237232

@@ -267,8 +262,6 @@ When passing a single flag with a comma a warning will be displayed.
267262

268263
Examples can be found in the [File System Permissions][] documentation.
269264

270-
Relative paths are NOT supported through the CLI flag.
271-
272265
### `--allow-wasi`
273266

274267
<!-- YAML

0 commit comments

Comments
 (0)