Google GSutil create folder

后端 未结 3 645
情书的邮戳
情书的邮戳 2021-01-08 00:23

How can u create a new folder inside a bucket in google cloud storage using the gsutil command?

I tried using the same command in creating bucket but still got an er

3条回答
  •  臣服心动
    2021-01-08 00:42

    The concept of directory is abstract in Google Cloud Storage. From the docs (How Subdirectories Work) :

    gsutil provides the illusion of a hierarchical file tree atop the "flat" name space supported by the Google Cloud Storage service. To the service, the object gs://your-bucket/abc/def.txt is just an object that happens to have "/" characters in its name. There is no "abc" directory; just a single object with the given name.

    So you cannot "create" a directory like in a traditional File System.

提交回复
热议问题