[英]Download Firebase Storage folder to a Cloud Functions Temporary Folder
I'm trying to download the entire folder from Firebase Storage so I can zip those files and upload them back to Firebase Storage while generating a download link.我正在尝试从 Firebase 存储下载整个文件夹,这样我就可以 zip 这些文件并将它们上传回 Firebase 存储,同时生成下载链接。
I have read a lot of posts and code but everything seemed getting away from my scope.我已经阅读了很多帖子和代码,但一切似乎都远离了我的 scope。
Do you have a clear example on how to download a Firebase Storage Folder to a Cloud Functions Temporary Folder or at least some hints on I could do it, keeping in mind that I am targeting a specific folder?您是否有关于如何将 Firebase 存储文件夹下载到 Cloud Functions 临时文件夹的明确示例,或者至少有一些关于我可以做到的提示,请记住我的目标是特定文件夹?
There is no bulk download operation provided by the SDK. SDK不提供批量下载操作。 The general pattern for downloading all files with some shared prefix using the node SDK for Cloud Storage will be:使用用于 Cloud Storage 的节点 SDK 下载具有某些共享前缀的所有文件的一般模式将是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.