nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
248 stars 61 forks source link

unable to get list of all files in firebase storage #49

Open codewithawr opened 2 years ago

codewithawr commented 2 years ago

i have a directory (wallpaper_app/Best_Wallpapers) in storage of firebase and it have some files iwant URL's of them all

but when i try to get list_files by image = storage.child('wallpaper_app/Best_Wallpapers/').list_files()

it is working with serviceAccount adid to conig bu idont want to add

-------------------------------iam facing error-----------------------------------

File "d:\Project\wallpaper-app-kivy\temp.py", line 33, in imageUrl = storage.list_files() File "D:\Project\wallpaper-app-kivy\wallpaper-app\lib\site-packages\pyrebase\pyrebase.py", line 507, in list_files return self.bucket.list_blobs() AttributeError: 'Storage' object has no attribute 'bucket'

----------------------------------------------------------------------------------

Make sure these boxes are checked before submitting your issue:

[/] Check that your version of Python is 3.4+ [/] Check that you are on the newest version of Pyrebase [/] Check that Email/password provider is enabled in your Firebase dashboard under Auth -> Sign In Method.

Please don't be discouraged if you do not get a response to your issue quickly, I maintain Pyrebase for fun and don't always have as much free time as I'd like.

Thank you for helping make Pyrebase better!