如何在Google云端存储中下载多个文件 [英] How to download multiple files in Google Cloud Storage
问题描述
我推荐他们使用 gsutil 。 GCS的API一次只处理一个对象。不过,它的命令行实用程序 gsutil
并不乐意同时下载一堆对象。使用gsutil下载整个GCS文件夹非常简单:
$> gsutil cp -r gs:// my-bucket / remoteDirectory localDirectory
Scenario: there are multiple folders and many files stored in storage bucket that is accessible by project team members. Instead of downloading individual files one at a time (which is very slow and time consuming), is there a way to download entire folders? Or at least multiple files at once? Is this possible without having to use one of the command consoles? Some of the team members are not tech savvy and need to access these files as simple as possible. Thank you for any help!
I recommend they use gsutil. GCS's API deals with only one object at a time. However, its command-line utility, gsutil
, is more than happy to download a bunch of objects in parallel, though. Downloading an entire GCS "folder" with gsutil is pretty simple:
$> gsutil cp -r gs://my-bucket/remoteDirectory localDirectory
这篇关于如何在Google云端存储中下载多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!