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

[list] use pagination to list s3 objects #513

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

Conversation

aaperis
Copy link
Contributor

@aaperis aaperis commented Feb 28, 2025

Related issue(s) and PR(s)
This PR closes #502 .

Description

Overall functionality remains unchanged but now the ListFiles function checks to see if there are more than the returned results and makes subsequent calls until it retrieves all the object info.

How to test
Upload 1001 files in a bucket and try to list with sda-cli.

Note:
This is a draft until I figure out a nice way to add tests.
I am considering to expose the MaxKeys aws configuration option as an argument to the above function so that I can add some sort of unit testing as well.

- adjust upload.go accordingly
@aaperis aaperis force-pushed the feature/pagination-of-list-files branch from a143d84 to 48af8cc Compare March 4, 2025 12:02
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.

[list] Be able to list more than 1000 files
1 participant