How to download multiple files in Google Cloud Storage

后端 未结 3 690
囚心锁ツ
囚心锁ツ 2021-02-13 16:55

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 (w

3条回答
  •  甜味超标
    2021-02-13 17:05

    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
    

提交回复
热议问题