Pyrebase4 icon indicating copy to clipboard operation
Pyrebase4 copied to clipboard

unable to get list of all files in firebase storage

Open codewithawr opened this issue 2 years ago • 2 comments

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 avatar Mar 20 '22 09:03 codewithawr

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

codewithawr avatar Mar 23 '22 07:03 codewithawr

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

codewithawr avatar Mar 25 '22 10:03 codewithawr