Skip to content

Commit 7e9f88e

Browse files
EileenBethGriggs
Eileen
authored andcommitted
doc: updated directory entry information
Fixes: #25595 subdirectory updated def PR-URL: #32791 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 45e188b commit 7e9f88e

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
@@ -430,8 +430,9 @@ included in the iteration results.
430430
added: v10.10.0
431431
-->
432432

433-
A representation of a directory entry, as returned by reading from an
434-
[`fs.Dir`][].
433+
A representation of a directory entry, which can be a file or a subdirectory
434+
within the directory, as returned by reading from an [`fs.Dir`][]. The
435+
directory entry is a combination of the file name and file type pairs.
435436

436437
Additionally, when [`fs.readdir()`][] or [`fs.readdirSync()`][] is called with
437438
the `withFileTypes` option set to `true`, the resulting array is filled with

0 commit comments

Comments
 (0)