Skip to content

Commit

Permalink
doc: document ACL limitation for fs.access on Windows
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jasnell authored and MylesBorins committed Nov 29, 2018
1 parent 32df77c commit 540168c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 540168c

Please sign in to comment.