mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: document ACL limitation for fs.access on Windows
Fixes: https://github.com/nodejs/node/issues/19192 PR-URL: https://github.com/nodejs/node/pull/23772 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
This commit is contained in:
1 parent
83b776c864
commit
f4c4b2b41b
1 file changed
+5
@@ -980,6 +980,11 @@ In general, check for the accessibility of a file only if the file will not be
|
||||
used directly, for example when its accessibility is a signal from another
|
||||
process.
|
||||
|
||||
On Windows, access-control policies (ACLs) on a directory may limit access to
|
||||
a file or directory. The `fs.access()` function, however, does not check the
|
||||
ACL and therefore may report that a path is accessible even if the ACL restricts
|
||||
the user from reading or writing to it.
|
||||
|
||||
## fs.accessSync(path[, mode])
|
||||
<!-- YAML
|
||||
added: v0.11.15
|
||||
|
||||
Reference in new issue
Block a user