mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
doc: explicitly mention node:fs module restriction
PR-URL: https://github.com/nodejs/node/pull/54269 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
50a49a5faa
commit
b49019eed6
@ -80,6 +80,10 @@ process.permission.has('fs.read', '/home/rafaelgss/protected-folder'); // false
|
||||
|
||||
#### File System Permissions
|
||||
|
||||
The Permission Model, by default, restricts access to the file system through the `node:fs` module.
|
||||
It does not guarantee that users will not be able to access the file system through other means,
|
||||
such as through the `node:sqlite` module.
|
||||
|
||||
To allow access to the file system, use the [`--allow-fs-read`][] and
|
||||
[`--allow-fs-write`][] flags:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user