Skip to content

Commit e636d83

Browse files
NReilinghRafaelGSS
authored andcommitted
doc: correct note on behavior of stats.isDirectory
PR-URL: #50946 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1c71435 commit e636d83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/fs.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -6968,8 +6968,9 @@ added: v0.1.10
69686968
69696969
Returns `true` if the {fs.Stats} object describes a file system directory.
69706970
6971-
If the {fs.Stats} object was obtained from [`fs.lstat()`][], this method will
6972-
always return `false`. This is because [`fs.lstat()`][] returns information
6971+
If the {fs.Stats} object was obtained from calling [`fs.lstat()`][] on a
6972+
symbolic link which resolves to a directory, this method will return `false`.
6973+
This is because [`fs.lstat()`][] returns information
69736974
about a symbolic link itself and not the path it resolves to.
69746975
69756976
#### `stats.isFIFO()`

0 commit comments

Comments
 (0)