Skip to content

Commit 9a36cbb

Browse files
RafaelGSSmarco-ippolito
authored andcommitted
doc: fix relative path mention in --allow-fs
PR-URL: #55791 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
1 parent 6fa0626 commit 9a36cbb

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
@@ -206,23 +206,18 @@ The valid arguments for the `--allow-fs-read` flag are:
206206
* Multiple paths can be allowed using multiple `--allow-fs-read` flags.
207207
Example `--allow-fs-read=/folder1/ --allow-fs-read=/folder1/`
208208

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

214-
Relative paths are NOT yet supported by the CLI flag.
215-
216211
The initializer module also needs to be allowed. Consider the following example:
217212

218213
```console
219-
$ node --experimental-permission t.js
214+
$ node --experimental-permission index.js
220215

221216
Error: Access to this API has been restricted
222217
at node:internal/main/run_main_module:23:47 {
223218
code: 'ERR_ACCESS_DENIED',
224219
permission: 'FileSystemRead',
225-
resource: '/Users/rafaelgss/repos/os/node/t.js'
220+
resource: '/Users/rafaelgss/repos/os/node/index.js'
226221
}
227222
```
228223

@@ -258,8 +253,6 @@ When passing a single flag with a comma a warning will be displayed.
258253

259254
Examples can be found in the [File System Permissions][] documentation.
260255

261-
Relative paths are NOT supported through the CLI flag.
262-
263256
### `--allow-wasi`
264257

265258
<!-- YAML

0 commit comments

Comments
 (0)