Back

Download a bucket

  • 0
  • Storage
punti_z
26 Aug, 2023, 21:33

I want to periodically have the files in a specific bucket downloaded by say triggering a function. I see in docs that there is a listfiles function but how can one go about doing that ? The UI doesn't provide a way to zip and download a bucket as well as far as I am aware. Anyone done something similar with storage ?

TL;DR
The user wants to know how to download a bucket. They are looking for a way to loop through the list of files returned by `listfiles`, download them, and add them to a zip in memory. They are also asking if it is possible to write a function to zip the files. Another user suggests downloading the files one by one. The user wants to periodically download the files in a specific bucket. They mention that the UI does not provide a way to zip and download a bucket. They are asking if anyone has done something similar with storage. Solution: To download files from a bucket, you will need to download them one
Drake
26 Aug, 2023, 21:41
punti_z
26 Aug, 2023, 21:43

You had mention in a post a while back that one could write a function to zip files, that not possible ?

Drake
26 Aug, 2023, 21:44

Sure, you can download one by one and add each to a zip

Drake
26 Aug, 2023, 21:44

Then upload to a bucket to be downloaded

punti_z
26 Aug, 2023, 21:48

I know you are trying to be helpful but I don't think I follow so a function would loop through the list of files returned by listfiles, download them and add them to a zip, all in memory ? Is that the suggestion ?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more