Skip to content

Commit 0ff88a3

Browse files
jasnellrvagg
authored andcommitted
doc: document ACL limitation for fs.access on Windows
Fixes: #19192 PR-URL: #23772 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Bartosz Sosnowski <[email protected]>
1 parent 32ae851 commit 0ff88a3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/fs.md

+5
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ In general, check for the accessibility of a file only if the file will not be
565565
used directly, for example when its accessibility is a signal from another
566566
process.
567567

568+
On Windows, access-control policies (ACLs) on a directory may limit access to
569+
a file or directory. The `fs.access()` function, however, does not check the
570+
ACL and therefore may report that a path is accessible even if the ACL restricts
571+
the user from reading or writing to it.
572+
568573
## fs.accessSync(path[, mode])
569574
<!-- YAML
570575
added: v0.11.15

0 commit comments

Comments
 (0)