有没有办法将 Google Cloud Storage 对象从 SDK Shell 复制到像 Box 这样的网络驱动器?

问题描述

有没有办法通过 SDK Shell 将 GCS 对象复制到像 Box 这样的网络驱动器?

我尝试过的如下。谢谢。

gsutil cp gs://your-bucket/some_file.tif C:/Users/Box/01. name/folder

CommandException: Destination URL must name a directory,bucket,or bucket
subdirectory for the multiple source form of the cp command.

解决方法

您的目的地似乎有错别字:

C:/Users/Box/01. name/folder

句点之后和“名称”之前有一个空格 - 您需要将其括在引号中或转义该空格。看起来你在 Windows 上; here's a doc 关于如何转义文件路径中的空格。