Amazon S3 boto - how to create a folder?

vito huang picture vito huang · Dec 21, 2009 · Viewed 123.3k times · Source

How can I create a folder under a bucket using boto library for Amazon s3?

I followed the manual, and created the keys with permission, metadata etc, but no where in the boto's documentation it describes how to create folders under a bucket, or create a folder under folders in bucket.

Answer

user240469 picture user240469 · Jan 26, 2010

There is no concept of folders or directories in S3. You can create file names like "abc/xys/uvw/123.jpg", which many S3 access tools like S3Fox show like a directory structure, but it's actually just a single file in a bucket.