mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: fix description of fs.readdir recursive option
PR-URL: https://github.com/nodejs/node/pull/48902 Fixes: https://github.com/nodejs/node/issues/48640 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
9302806c0a
commit
3d03ca9f31
1 file changed
+9
-3
+9
-3
@@ -1298,7 +1298,9 @@ changes:
|
||||
* `options` {string|Object}
|
||||
* `encoding` {string} **Default:** `'utf8'`
|
||||
* `withFileTypes` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} If `true`, reads the contents of a directory
|
||||
recursively. In recursive mode, it will list all files, sub files, and
|
||||
directories. **Default:** `false`.
|
||||
* Returns: {Promise} Fulfills with an array of the names of the files in
|
||||
the directory excluding `'.'` and `'..'`.
|
||||
|
||||
@@ -3614,7 +3616,9 @@ changes:
|
||||
* `options` {string|Object}
|
||||
* `encoding` {string} **Default:** `'utf8'`
|
||||
* `withFileTypes` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} If `true`, reads the contents of a directory
|
||||
recursively. In recursive mode, it will list all files, sub files and
|
||||
directories. **Default:** `false`.
|
||||
* `callback` {Function}
|
||||
* `err` {Error}
|
||||
* `files` {string\[]|Buffer\[]|fs.Dirent\[]}
|
||||
@@ -5681,7 +5685,9 @@ changes:
|
||||
* `options` {string|Object}
|
||||
* `encoding` {string} **Default:** `'utf8'`
|
||||
* `withFileTypes` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} **Default:** `false`
|
||||
* `recursive` {boolean} If `true`, reads the contents of a directory
|
||||
recursively. In recursive mode, it will list all files, sub files, and
|
||||
directories. **Default:** `false`.
|
||||
* Returns: {string\[]|Buffer\[]|fs.Dirent\[]}
|
||||
|
||||
Reads the contents of the directory.
|
||||
|
||||
Reference in new issue
Block a user