I am just trying to download all files in a folder, this worked on pyrebase on my main PC but somehow pyrebase can't be installed on my work PC so I googled and had to install pyrebase4.
apart from having to change this syntax: from storage.child(file.name).download(os.path.basename(file.name)) to storage.child(file.name).download(path, os.path.basename(file.name))
I was able to run the script without issues... until I realize that none of my files are getting downloaded. Maybe my path is incorrect? this is my script:
I know that my script able to access firebase because it worked on pyrebase on my PC and this is the print I get from path and file respectively.
I am just trying to download all files in a folder, this worked on pyrebase on my main PC but somehow pyrebase can't be installed on my work PC so I googled and had to install pyrebase4.
apart from having to change this syntax: from
storage.child(file.name).download(os.path.basename(file.name))
tostorage.child(file.name).download(path, os.path.basename(file.name))
I was able to run the script without issues... until I realize that none of my files are getting downloaded. Maybe my path is incorrect? this is my script:
I know that my script able to access firebase because it worked on pyrebase on my PC and this is the print I get from path and file respectively.
path:
https://firebasestorage.googleapis.com/v0/b/asdasdadasdad.appspot.com/o/records%2F000000000000053-777-cotizacion.pdf?alt=media
os.path.basename(file.name):000000000000053-777-cotizacion.pdf
btw thanks for forking pyrebase.