Download a folder as a zip using box-node-sdk

I’ve incorporated Box into my applications and have relied on it for several months. Previously, I’ve been utilizing the getDownloadURL function outlined in their documentation to download individual files.

Now, my objective is to download an entire folder as a zip file. To accomplish this, I’ve utilized a recursive implementation of the getDownloadURL function and manually recreated the folder structure to mimic that of Box.

Is there a built-in solution or workaround provided by Box for this scenario? The current process is consuming significant server resources and is prone to failure, especially when dealing with folder sizes in the gigabytes range.

Thank you in advance for your assistance.

Hi @hgupta007 , welcome to the forum!

Yes there is, it is called zip download.

For the node SDK you can, create the zip file, and download the zip file.

Let us know if this helps.

Hi @rbarbosa ,
Thanks this one worked perfectly as per our requirement :grinning:

Awesome! That is what we like!

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.