mardi 13 octobre 2015

How to create a "folder-like" (i.e. PREFIX) object on S3 using the AWS CLI?

It is usually explained that there are no folders/directories on S3, which is true, however there are PREFIX objects. In some cases - e.g. using riofs to "mount" a filesystem to S3 - it could actually be useful to know how to create one of these.

Does anyone know if there is a "correct" way to do this with the AWS CLI? It's likely possible using the low-level API aws s3api ...

Related SO posts:

amazon S3 boto - how to create folder?

Creating a folder via s3cmd (Amazon S3)

P.S.

I also want to point out that in the AWS console this action is actually named "Create Folder...", so it's not really fair to tell people that there is no "concept" of a folder on S3.

Many thanks!




Aucun commentaire:

Enregistrer un commentaire