node/lib/internal/fs
Ethan Arrowood 7b39e8099a
fs: add recursive option to readdir and opendir
Adds a naive, linear recursive algorithm for the following methods:
readdir, readdirSync, opendir, opendirSync, and the promise based
equivalents.

Fixes: https://github.com/nodejs/node/issues/34992
PR-URL: https://github.com/nodejs/node/pull/41439
Refs: https://github.com/nodejs/tooling/issues/130
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2023-04-20 17:50:27 +00:00
..
cp fs: add support for mode flag to specify the copy behavior 2023-04-20 06:28:18 +00:00
dir.js fs: add recursive option to readdir and opendir 2023-04-20 17:50:27 +00:00
promises.js fs: add recursive option to readdir and opendir 2023-04-20 17:50:27 +00:00
read_file_context.js fs: add trailing commas in source files 2023-02-20 01:58:32 +01:00
recursive_watch.js fs: fix nonNativeWatcher watching folder with existing files 2022-11-27 22:03:42 +00:00
rimraf.js fs: add trailing commas in source files 2023-02-20 01:58:32 +01:00
streams.js fs: add trailing commas in source files 2023-02-20 01:58:32 +01:00
sync_write_stream.js fs: use kEmptyObject 2022-06-11 12:18:13 +02:00
utils.js fs: add recursive option to readdir and opendir 2023-04-20 17:50:27 +00:00
watchers.js fs: add trailing commas in source files 2023-02-20 01:58:32 +01:00