Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience method for recursive directory iteration #173

Closed
mkruisselbrink opened this issue Apr 16, 2020 · 3 comments
Closed

Convenience method for recursive directory iteration #173

mkruisselbrink opened this issue Apr 16, 2020 · 3 comments
Milestone

Comments

@mkruisselbrink
Copy link
Contributor

Copying from #22 point 4:

It should be easy to read only files or subfolders from a parent folder, and have a recursive option to return the contents of subfolders. Example:

try {
 for await(let file_reference of folder_reference.read({ files: true, folders: false, recursive: true })) {
  console.log(file_reference)
 }
} catch(error) {
 console.error(error)
}
@mkruisselbrink mkruisselbrink added this to the Future milestone Apr 16, 2020
@mkruisselbrink
Copy link
Contributor Author

This would be solved by being able to pass options to getEntries (or to whatever happens with that method). Seems like a nice future enhancement, but probably won't make an initial version.

@mkruisselbrink
Copy link
Contributor Author

Related to this #154, recursive iteration should somehow make a relative path available for all the returned entries.

@a-sully
Copy link
Collaborator

a-sully commented Mar 8, 2022

This issue has been ported to the new spec: whatwg/fs#15

@a-sully a-sully closed this as completed Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants