Amazon S3 boto - 如何创建文件夹? [英] Amazon S3 boto - how to create a folder?
问题描述
如何使用 Amazon s3 的 boto
库在存储桶下创建文件夹?
How can I create a folder under a bucket using boto
library for Amazon s3?
我遵循了手册,并使用权限、元数据等创建了密钥,但在 boto 的文档中没有任何地方描述如何在存储桶下创建文件夹,或在存储桶中的文件夹下创建文件夹.
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.
推荐答案
S3 中没有文件夹或目录的概念.你可以创建像"abc/xys/uvw/123.jpg"
这样的文件名,许多像S3Fox
这样的S3访问工具显示的就像一个目录结构,但它实际上只是一个存储桶中的单个文件.
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.
这篇关于Amazon S3 boto - 如何创建文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!