nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
258 stars 64 forks source link

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

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()

iam facing error

File "d:\Project\wallpaper-app-kivy\temp.py", line 33, in <module>
    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!

codewithawr commented 2 years ago

it jest need a file from firebase service Account file and give its path to config dic() by name key of "serviceAccount"

codewithawr commented 2 years ago

ther also a way do it without service Account? because iam making kivymd app and i dont want add service Account file to it