diff --git a/doc/api/fs.md b/doc/api/fs.md index f8390de7182702..f52b5b9a94845d 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1322,7 +1322,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 `'..'`. @@ -3644,7 +3646,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\[]} @@ -5717,7 +5721,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.