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 targos committed Oct 24, 2018
1 parent 83b776c commit f4c4b2b
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 f4c4b2b

Please sign in to comment.