-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
Is your feature request related to a problem? Please describe.
Please describe the problem you are trying to solve.
Recursively list file paths in a directory
Describe the solution you'd like
Please describe the desired behavior.
Dir structure like:
| a /
| |- b /
| | |- c /
| | | |- d.js
| | | |- e.js
| | |- f.js
| |- g.js
Should return ['a/b/c/d.js', 'a/b/c/e.js', 'a/b/f.js', 'a/g.js']
Describe alternatives you've considered
Please describe alternative solutions or features you have considered.
Some public solutions that are synchronous and may be able to made faster:
- https://attacomsian.com/blog/nodejs-list-directory-files
- https://coderrocketfuel.com/article/recursively-list-all-the-files-in-a-directory-using-node-js
- https://stackoverflow.com/questions/26827920/nodejs-recursively-list-files-in-directory
I wrote a version of this using async/await and typescript tweet. Not tested much and needs to be extrapolated for general purpose use
If this something the community is interested in I'd be happy to contribute it!
ahtee, BridgeAR, lynxtaa, jimmywarting, aladdin-add and 1 more
Metadata
Metadata
Assignees
Labels
fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.