mb 命令需要一个 URL 来指定一个桶

The mb command requires a URL that specifies a bucket

我正在尝试使用 mb 命令在 Google Cloud Storage 上创建存储桶,但我得到

CommandException: The mb command requires a URL that specifies a bucket.

奇数部分是

gsutil mb gs://foo/bar1 

returns这个错误,

gsutil ls gs://foo/bar2 

正确列出了 gs://foo/bar2. 中的文件 我不明白 gs://foo/bar2 如何成为有效的 URL 而 gs://foo/bar1 却不是。有人能在这里阐明一下吗?

gs://foo/bar1 是一个 URL,它在存储桶 foo 中指定对象 bar1gsutil mb 命令需要一个 URL 表示一个桶,例如gs://foogsutil ls 命令可以接受存储桶和对象 URLs.

gsutil mb做一个桶。 "gs://foo" 指定一个桶,特别是桶 'foo'。 "gs://foo/bar1" 指定一个对象而不仅仅是一个桶。 "foo/bar1" 不是桶。