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

Added async iterator with preflight to file-storage list operation #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eastlondoner
Copy link

This adds async iteration to the file-system list operations.

I got a little carried away and proposed adding directly to the list() response, this might be too opinionated though, let me know what you think, it could be just the separate iterate() method.

A good summary of the changes is in the CHANGELOG diff.

@eastlondoner eastlondoner changed the title Added async iterator with preflight to file-storage Added async iterator with preflight to file-storage list operation Feb 4, 2025
@sergiodxa
Copy link
Contributor

Small proposal, rename it to scan, so we have storage.scan(), and that uses the AsyncIterator approach, while storage.list() gives you a Promise with a list.

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

Successfully merging this pull request may close these issues.

2 participants