【发布时间】:2022-02-27 18:25:16
【问题描述】:
是否有任何 API 函数允许我们将 Google Cloud Storage 中的文件从一个存储桶移动到另一个存储桶?
场景是我们希望 Python 将 A 存储桶中的读取文件移动到 B 存储桶。我知道 gsutil 可以做到这一点,但不确定 Python 是否支持。
谢谢。
【问题讨论】:
-
在 Google Compute Engine 中,您甚至可以从 Python 应用程序运行外部 gsutil 命令来移动文件。
-
您使用的是哪个 Python API?
标签: python google-cloud-storage