Skip to content

Show how to list immediate S3 child prefixes - #10939

Open
SujayBhoi wants to merge 1 commit into
aws:v2from
SujayBhoi:docs/s3-list-child-prefixes
Open

SujayBhoi wants to merge 1 commit into
aws:v2from
SujayBhoi:docs/s3-list-child-prefixes

Conversation

@SujayBhoi

Copy link
Copy Markdown

The current s3api list-objects-v2 example lists objects in a bucket. This adds a worked example for browsing one level under photos/. It shows how --prefix and --delimiter group nested keys, and why a direct object such as photos/cover.jpg is absent from the CommonPrefixes[].Prefix result.

Checked the grouping against the ListObjectsV2 reference and the sample JSON against the two expected child prefixes. No live bucket was used.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Added example for listing child prefixes under a prefix in S3.
@SujayBhoi
SujayBhoi requested a review from a team as a code owner November 23, 2026 15:13

This branch has not been deployed

No deployments
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.

1 participant