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:
James M Snell authored and Michaël Zasso committed 2018-10-24 16:10:16 +02:00
1 parent 83b776c864
commit f4c4b2b41b
1 file changed
+5
+5
View File
@@ -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