@@ -1322,7 +1322,9 @@ changes:
1322
1322
* `options` {string|Object}
1323
1323
* `encoding` {string} **Default:** `'utf8'`
1324
1324
* `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`.
1326
1328
* Returns: {Promise} Fulfills with an array of the names of the files in
1327
1329
the directory excluding `'.'` and `'..'`.
1328
1330
@@ -3644,7 +3646,9 @@ changes:
3644
3646
* ` options` {string|Object}
3645
3647
* ` encoding` {string} **Default:** ` ' utf8' `
3646
3648
* ` 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 ` .
3648
3652
* ` callback` {Function}
3649
3653
* ` err` {Error}
3650
3654
* ` files` {string\[ ]|Buffer\[ ]|fs.Dirent\[ ]}
@@ -5717,7 +5721,9 @@ changes:
5717
5721
* `options` {string|Object}
5718
5722
* `encoding` {string} **Default:** `' utf8' `
5719
5723
* `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`.
5721
5727
* Returns: {string\[ ]|Buffer\[ ]|fs.Dirent\[ ]}
5722
5728
5723
5729
Reads the contents of the directory.
0 commit comments