Downloading folders from Google Cloud Storage Bucket with NodeJS

前端 未结 2 540
后悔当初
后悔当初 2021-01-14 01:50

I need to download folders with NodeJS from my Bucket from my Google Cloud Storage. I read all the documentation and I only found a way to download files and not folders. I

2条回答
  •  自闭症患者
    2021-01-14 02:11

    You will want to use the getFiles method of Bucket to query for the files you want to download, then download each one of them individually. Read more about how to use the underlying list API. There are no folder operations in Cloud Storage (as there are not actually any folders, there are just file paths the look like they're organized as folders).

提交回复
热议问题