Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4257952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:35:01+00:00 2026-05-21T05:35:01+00:00

I want to list only the objects in a bucket that aren’t buckets themselves.

  • 0

I want to list only the objects in a bucket that aren’t buckets themselves. Is there a way of doing this short of parsing out the results of ListBucket?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T05:35:01+00:00Added an answer on May 21, 2026 at 5:35 am

    objects in a bucket that aren’t buckets themselves

    Buckets can’t contain other buckets. Do you mean folders? S3 doesn’t have a concept of folders either.

    You can have 100 buckets per S3 account and each bucket can contain an unlimited number of objects/files. If you name your files with /‘s in the filename, the AWS GUI tools (eg AWS Console, BucketExplorer etc) will interpret each section as a virtual folder. eg

    A file named folder1/folder2/myfile.jpg will be stored in S3 as a ‘flat’ file with that name, but in the GUI tools it will appear as though a file named myfile.jpg is 2 subfolders down in folder1/folder2.

    You can use the prefix and delimiter parameters to parse the results of a GET Bucket (List Objects) call. The same options are available in any of the SDKs too.

    UPDATE to answer comment.

    Assuming our S3 bucket looks like this:

    mybucket
       folder1
          file1.txt
          file2.txt
          folder2
              file3.txt
              file4.txt
          folder3
              file5.txt
              file6.txt
    

    Using prefix = "folder1/" would return all 6 files : file1.txt to file6.txt.

    Using a prefix = "folder1/" and a delimiter = "/" would return 2 files:

        file1.txt
        file2.txt
    

    And the CommonPrefixes collection of the response with contain

        folder1/folder2/
        folder1/folder3/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I Want to have only unique values in a SharePoin List. To achieve this
I have a list of objects that I've created manually, like this: rand1 <-
What's the easiest way to get a distinct list of the objects using only
I want to list all objects in R that start with something, like starts
I'm having container of objects and i want to return only readonly list of
I have a directory containing multiple subdirectories. I want to list only those subdirectories
I want create module which update list of usb devices automatically (not only mass
I want to add colections to List, but only if Advertisements does not already
I have a list of Divs within another div and I want to only
I want to list messages that received specific user from other users group by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.