我想获取pyrebase(Python)的firebase存储列表
how to list every element of storage files in firebase
上面的链接解释了这一点。但是当我尝试使用这段代码时,Python显示以下错误消息。
files = storage.list_files()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Python\lib\site-packages\pyrebase\pyrebase.py", line 439, in list_files
return self.bucket.list_blobs()
AttributeError: 'Storage' object has no attribute 'bucket'代码:
storage = firebase.storage()
files = storage.list_files()
for file in files:
print(storage.child(file.name).get_url(None))发布于 2019-08-24 17:50:34
我可以做到这一点。
在conifg中,我添加了
"serviceAccount":"******.json“
****.json : serviceAccount文件
请参考以下网址:如何下载serviceAccount Firebase Permission Denied with Pyrebase library
https://stackoverflow.com/questions/57634780
复制相似问题