Skip to content

Recursively list file paths in directory #34992

Closed
@Ethan-Arrowood

Description

@Ethan-Arrowood

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:


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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions