You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I get list of all the files in storage ? #414
Still Unable to extract files from particular folder, giving the same Object as output for both of the lines...
( Listing whole files from Firebase Storage )
Please add service account json file as shown in picture.
Then only the method will work,
files = storage.child("pictures").list_files()
for f in files:
print(f)
p.s. After I have searched for a while, I found out the method used in pyrebase is deprecated, so you can only list all the files in the storage, not files from just one folder. Even if you use storage.child(folder).list_files(), it will still show all the files in the whole storage.
Activity
hereisamara commentedon Apr 10, 2022
storage.child(folder_name).list_files()
adivaste commentedon Apr 14, 2022
Still Unable to extract files from particular folder, giving the same Object as output for both of the lines...
( Listing whole files from Firebase Storage )
firebaseFiles = storage.list_files()firebaseFiles = storage.child("chartjs").list_files()hereisamara commentedon Apr 15, 2022
Please add service account json file as shown in picture.
Then only the method will work,
p.s. After I have searched for a while, I found out the method used in pyrebase is deprecated, so you can only list all the files in the storage, not files from just one folder. Even if you use
storage.child(folder).list_files(), it will still show all the files in the whole storage.hereisamara commentedon Apr 15, 2022
If you want files only from a particular folder, you can use this, where the prefix is your folder name followed by a /.
adivaste commentedon Apr 16, 2022
Yeah, I was doing it with a similar kind of method, but in this way, it might take a little more time.
btw thanks for it...