Skip to content

Commit f711a48

Browse files
RafaelGSSaduh95
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 219f5f2 commit f711a48

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

doc/api/cli.md

+2-9
Original file line numberDiff line numberDiff line change
@@ -208,23 +208,18 @@ 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

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

@@ -260,8 +255,6 @@ When passing a single flag with a comma a warning will be displayed.
260255

261256
Examples can be found in the [File System Permissions][] documentation.
262257

263-
Relative paths are NOT supported through the CLI flag.
264-
265258
### `--allow-wasi`
266259

267260
<!-- YAML

0 commit comments

Comments
 (0)