【发布时间】:2021-08-22 23:35:56
【问题描述】:
有没有办法检查 Firebase 云函数 (JavaScript) 中是否存在文件夹?
我试过使用bucket.file().exists(),但这仅适用于文件。
【问题讨论】:
标签: javascript firebase google-cloud-firestore google-cloud-functions google-cloud-storage
有没有办法检查 Firebase 云函数 (JavaScript) 中是否存在文件夹?
我试过使用bucket.file().exists(),但这仅适用于文件。
【问题讨论】:
标签: javascript firebase google-cloud-firestore google-cloud-functions google-cloud-storage
Cloud Storage 使用平面命名空间运行,这意味着文件夹实际上并不存在于 Cloud Storage 中。在列出对象名称时,通过使用prefix 和separators 来模拟文件夹的概念。
【讨论】: