From c45d0448f98c1e09757ef6536659d27b09fdb033 Mon Sep 17 00:00:00 2001 From: Eileen Date: Sat, 11 Apr 2020 18:11:44 -0700 Subject: [PATCH] doc: updated directory entry information Fixes: https://github.com/nodejs/node/issues/25595 subdirectory updated def --- doc/api/fs.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index af627f632b123e..956608a1d2084a 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -430,8 +430,9 @@ included in the iteration results. added: v10.10.0 --> -A representation of a directory entry, as returned by reading from an -[`fs.Dir`][]. +A representation of a directory entry, which can be a file or a subdirectory +within the directory, as returned by reading from an [`fs.Dir`][]. The +directory entry is a combination of the file name and file type pairs. Additionally, when [`fs.readdir()`][] or [`fs.readdirSync()`][] is called with the `withFileTypes` option set to `true`, the resulting array is filled with