'Why can't I use .list_files() to download the files from a firebase folder

I am trying to download all the files from a firebase folder using python

I keep getting this: AttributeError: 'Storage' object has no attribute 'bucket'

storage = firebase.storage()
datadir = 'path/to/local/directory/'
all_files = storage.child("not_converted_pdfs").list_files()
print(all_files)

for file in all_files:
    try:
        file.download_to_filename(datadir + file.name)
    except:
        print('Download Failed')


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source