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 all files in bucket when over 1,000 objects #2541

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

maxkadel
Copy link
Contributor

Connected to #2538

@maxkadel maxkadel marked this pull request as ready for review October 25, 2024 18:26
Copy link
Member

@christinach christinach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @maxkadel !

response = s3_client.list_objects_v2(bucket: s3_bucket_name, prefix:, delimiter: '')
file_list << response.contents.entries
while response.next_continuation_token
response = s3_client.list_objects_v2(bucket: s3_bucket_name, prefix:, delimiter: '', continuation_token: response.next_continuation_token)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@christinach christinach merged commit de79742 into main Oct 25, 2024
12 checks passed
@christinach christinach deleted the scsb_update_investigation branch October 25, 2024 18:40
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.

3 participants