-1

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

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'

1 Answers1

-1

you have to get a Service accounts got to (Project settings) then (Service accounts) in (Firebase Admin SDK) scroll down to make new private key downlode file you have to past its path of file to config dic by key of "serviceAccount"