Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the difference between Buckets and Folders in Amazon S3 ? Is such a thing like Folder exist in Amazon S3 ? or only the S3 clients present Folders to us for better handling ?

share|improve this question

migrated from Oct 8 '12 at 4:34

This question came from our site for professional and enthusiast programmers.

up vote 12 down vote accepted

Directories don't actually exist within S3 buckets. The entire file structure is actually just one flat single-level container of files.

The illusion of directories are actually created based on naming the files names like dirA/dirB/file.

Certain S3 tools (Firefox S3 organizer, s3fs, etc.) have taken the extra step of introducing proprietary metadata files to simulate directory nodes for usage in making the tool operate more intuitively.

But the bottom line is there are no real sub-directories in a bucket.

share|improve this answer

Either you create empty directory file "dirA/" or not, amazon s3 gives you common prefixes, which is the list of strings delimited by "/" if you want to get directory list for the prefix

To see the difference see the folder view and file view in Bucket Explorer or try its search feature will make you more understand about its response.

I am one of the developer from Bucket Explorer Team

share|improve this answer

There is no folder concept in S3, it only has bucket and key. Their tool is just so nice that interpret the key in to folder like structure.

For example in foo bucket, A/b/c and A/b/d are two distinct keys sharing only the bucket in common

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.