gpt4 book ai didi

google-cloud-platform - 谷歌 GSutil 创建文件夹

转载 作者:行者123 更新时间:2023-12-04 05:22:29 40 4
gpt4 key购买 nike

如何使用 gsutil 命令在谷歌云存储的存储桶中创建新文件夹?

我尝试在创建存储桶时使用相同的命令,但仍然出现错误

gsutil mb -l us-east1 gs://my-awesome-bucket/new_folder/

谢谢!

最佳答案

目录的概念在 Google Cloud Storage 中是抽象的。来自文档(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.



因此,您不能像在传统文件系统中那样“创建”目录。

关于google-cloud-platform - 谷歌 GSutil 创建文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51892343/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com