how to list every element of storage files in firebase

此生再无相见时 提交于 2020-05-31 04:20:10

问题


How to list every element of storage files in firebase.

In the official documentation there is no any word, about this. https://github.com/thisbejim/Pyrebase

I want to iterate storage files: I use pyrebase, my code:

firebase   =   pyrebase.initialize_app(config)
db         =   firebase.database()
storage    =   firebase.storage()

回答1:


I know it's an old question but I thought I'd answer as I was looking for an answer to this same question

storage = firebase.storage()
files = storage.list_files()
for file in files:
    print(storage.child(file.name).get_url(None))


来源:https://stackoverflow.com/questions/46663687/how-to-list-every-element-of-storage-files-in-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!