Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 34fa704

Browse filesBrowse files
author
RamdohokarAngha
authored
doc: fix description of fs.readdir recursive option
PR-URL: #48902 Fixes: #48640 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 11f95dd commit 34fa704
Copy full SHA for 34fa704

File tree

Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.md‎

Copy file name to clipboardExpand all lines: doc/api/fs.md
+9-3Lines changed: 9 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,9 @@ changes:
13221322
* `options` {string|Object}
13231323
* `encoding` {string} **Default:** `'utf8'`
13241324
* `withFileTypes` {boolean} **Default:** `false`
1325-
* `recursive` {boolean} **Default:** `false`
1325+
* `recursive` {boolean} If `true`, reads the contents of a directory
1326+
recursively. In recursive mode, it will list all files, sub files, and
1327+
directories. **Default:** `false`.
13261328
* Returns: {Promise} Fulfills with an array of the names of the files in
13271329
the directory excluding `'.'` and `'..'`.
13281330
@@ -3644,7 +3646,9 @@ changes:
36443646
* `options` {string|Object}
36453647
* `encoding` {string} **Default:** `'utf8'`
36463648
* `withFileTypes` {boolean} **Default:** `false`
3647-
* `recursive` {boolean} **Default:** `false`
3649+
* `recursive` {boolean} If `true`, reads the contents of a directory
3650+
recursively. In recursive mode, it will list all files, sub files and
3651+
directories. **Default:** `false`.
36483652
* `callback` {Function}
36493653
* `err` {Error}
36503654
* `files` {string\[]|Buffer\[]|fs.Dirent\[]}
@@ -5717,7 +5721,9 @@ changes:
57175721
* `options` {string|Object}
57185722
* `encoding` {string} **Default:** `'utf8'`
57195723
* `withFileTypes` {boolean} **Default:** `false`
5720-
* `recursive` {boolean} **Default:** `false`
5724+
* `recursive` {boolean} If `true`, reads the contents of a directory
5725+
recursively. In recursive mode, it will list all files, sub files, and
5726+
directories. **Default:** `false`.
57215727
* Returns: {string\[]|Buffer\[]|fs.Dirent\[]}
57225728
57235729
Reads the contents of the directory.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.