我想通过pyrebase(Python)获取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))