Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
codewithawr opened this issue Mar 20, 2022 · 2 comments
Open

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

codewithawr opened this issue Mar 20, 2022 · 2 comments

Comments

@codewithawr
Copy link

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
Copy link
Author

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

@codewithawr
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant