Asynchronously enumerates files starting from one or more input paths.
This async generator yields file paths (as strings) discovered while traversing the provided path(s). Directory traversal is breadth-first (queue-based).
Optional
// Recursively enumerate all files under "src" and "test"for await (const file of EnumerateFiles(["src", "test"])) { console.log(file);} Copy
// Recursively enumerate all files under "src" and "test"for await (const file of EnumerateFiles(["src", "test"])) { console.log(file);}
6.1.1
2025-10-23
Asynchronously enumerates files starting from one or more input paths.
This async generator yields file paths (as strings) discovered while traversing the provided path(s). Directory traversal is breadth-first (queue-based).