Answers for "pyrebase download folder"

0

pyrebase download folder

firebase = pyrebase.initialize_app(config)
storage = firebase.storage()

datadir = "C:\\Users\\aybar\\Pictures\\"

all_files = storage.child("images").list_files()
ab=str(1)    

for file in all_files:            
    try:
        print(file.name)    
        z=storage.child(file.name).get_url(None)    
        storage.child(file.name).download(datadir + ab + ".png")    
        x=int(ab)     
        ab=str(x+1)    
    except:    
            print('Download Failed')
Posted by: Guest on May-17-2021

Code answers related to "pyrebase download folder"

Browse Popular Code Answers by Language