Skip to content

Commit

Permalink
doc: correct note on behavior of stats.isDirectory
Browse files Browse the repository at this point in the history
PR-URL: #50946
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
NReilingh authored and RafaelGSS committed Jan 2, 2024
1 parent 1c71435 commit e636d83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6968,8 +6968,9 @@ 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
If the {fs.Stats} object was obtained from calling [`fs.lstat()`][] on a
symbolic link which resolves to a directory, this method will return `false`.
This is because [`fs.lstat()`][] returns information
about a symbolic link itself and not the path it resolves to.
#### `stats.isFIFO()`
Expand Down

0 comments on commit e636d83

Please sign in to comment.