Skip to content

Commit 135948d

Browse files
authored
doc: correct note on behavior of stats.isDirectory
PR-URL: #50946 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b931e61 commit 135948d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/fs.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6992,8 +6992,9 @@ added: v0.1.10
69926992
69936993
Returns `true` if the {fs.Stats} object describes a file system directory.
69946994
6995-
If the {fs.Stats} object was obtained from [`fs.lstat()`][], this method will
6996-
always return `false`. This is because [`fs.lstat()`][] returns information
6995+
If the {fs.Stats} object was obtained from calling [`fs.lstat()`][] on a
6996+
symbolic link which resolves to a directory, this method will return `false`.
6997+
This is because [`fs.lstat()`][] returns information
69976998
about a symbolic link itself and not the path it resolves to.
69986999
69997000
#### `stats.isFIFO()`

0 commit comments

Comments
 (0)