Is it possible to download folder files from Firebase Storage?

20 Views Asked by At

I want to download a folder with image files from the Firebase Storage, to migrate them to another hosting. But I didn't find any functionality to download even a single file in the Firebase console. Is it possible? I just need to download it on my PC, not in any script or code.

Looked through the docs but didn't find any clear instructions.

1

There are 1 best solutions below

0
Alex Mamo On

If you search for an option to download all files from a folder that exists in Firebase Storage using the Firebase Console, please note that is not possible. You can download the files one by one, but not an entire folder. However, that can be achieved using a few lines of code. For example, on Android, you can use StorageReference#listAll() which:

List all items (files) and prefixes (folders) under this StorageReference.

This means that you can call the above method to list all files that exist at a particular location in your Storage bucket. If you understand Java, this answer will help:

But instead of displaying them, you should download them.