火力基地存储 CORS.IOError: [Errno 2] 没有这样的文件或目录: u'cors-json-file.json'



我熟悉Firebase和fire storage,但对G-Cloud-SDK很陌生。 我发现这个主题 https://groups.google.com/forum/#!msg/firebase-talk/oSPWMS7MSNA/RnvU6aqtFwAJ 并尝试复制结果,但从终端得到"IOError:[Errno 2] 没有这样的文件或目录:u'cors-json-file.json'"。

我在文档 https://cloud.google.com/storage/docs/configuring-cors#configure-cors-gsutil 中找到了更多信息,它描述了相同的过程,但遇到了相同的错误。

我发现很难使用 Google Cloud SDK 进行任何故障排除,因为我已经在 Firebase 中设置了功能。

gsutil cors set cors.json gs://example-bucket

示例:如果 d: 驱动器中的 cors.json 文件,则路径将类似于 d:/folderName/cors_filename.gs 网址是您的存储桶网址。

我没有将我的本地目录移动到我的"cors-json-file.json"...

最新更新