@@ -1298,7 +1298,9 @@ changes:
1298
1298
* `options` {string|Object}
1299
1299
* `encoding` {string} **Default:** `'utf8'`
1300
1300
* `withFileTypes` {boolean} **Default:** `false`
1301
- * `recursive` {boolean} **Default:** `false`
1301
+ * `recursive` {boolean} If `true`, reads the contents of a directory
1302
+ recursively. In recursive mode, it will list all files, sub files, and
1303
+ directories. **Default:** `false`.
1302
1304
* Returns: {Promise} Fulfills with an array of the names of the files in
1303
1305
the directory excluding `'.'` and `'..'`.
1304
1306
@@ -3614,7 +3616,9 @@ changes:
3614
3616
* ` options` {string|Object}
3615
3617
* ` encoding` {string} **Default:** ` ' utf8' `
3616
3618
* ` withFileTypes` {boolean} **Default:** ` false `
3617
- * ` recursive` {boolean} **Default:** ` false `
3619
+ * ` recursive` {boolean} If ` true ` , reads the contents of a directory
3620
+ recursively. In recursive mode, it will list all files, sub files and
3621
+ directories. **Default:** ` false ` .
3618
3622
* ` callback` {Function}
3619
3623
* ` err` {Error}
3620
3624
* ` files` {string\[ ]|Buffer\[ ]|fs.Dirent\[ ]}
@@ -5681,7 +5685,9 @@ changes:
5681
5685
* `options` {string|Object}
5682
5686
* `encoding` {string} **Default:** `' utf8' `
5683
5687
* `withFileTypes` {boolean} **Default:** `false`
5684
- * `recursive` {boolean} **Default:** `false`
5688
+ * `recursive` {boolean} If `true`, reads the contents of a directory
5689
+ recursively. In recursive mode, it will list all files, sub files, and
5690
+ directories. **Default:** `false`.
5685
5691
* Returns: {string\[ ]|Buffer\[ ]|fs.Dirent\[ ]}
5686
5692
5687
5693
Reads the contents of the directory.
0 commit comments