Skip to content

Commit

Permalink
doc,fs: document value of stats.isDirectory on symbolic links
Browse files Browse the repository at this point in the history
PR-URL: #27413
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
coderaiser authored and danielleadams committed Nov 9, 2020
1 parent eea7e3b commit 85cf305
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,10 @@ added: v0.1.10

Returns `true` if the `fs.Stats` object describes a file system directory.

If the `fs.Stats` object was obtained from [`fs.lstat()`][], this method will
always return `false`. This is because [`fs.lstat()`][] returns information
about a symbolic link itself and not the path it resolves to.

### `stats.isFIFO()`
<!-- YAML
added: v0.1.10
Expand Down

0 comments on commit 85cf305

Please sign in to comment.