cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Check out the Dropbox cheat sheet for getting started in 2021 here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Download entire folder from Dropbox using Vb. NET

Download entire folder from Dropbox using Vb. NET

New member | Level 2

Hi guys!
I'm trying to write code to create a program that will download and upload files and folders from/to Dropbox automatically.

When I need to download a single file there's no problem using X.files.downloadAsync("path", await X.GetContentAsByteArrayAsync), but when I need to download an entire folder I don't know how to do it, I can't use the same instruction...

Someone know how to solve this issue?

1 Reply 1

Re: Download entire folder from Dropbox using Vb. NET

Dropboxer

If you want to download an entire folder using the .NET SDK, you have two options:

  1. Use the DownloadAsync method, calling once per file inside the folder. You can use the ListFolderAsync and ListFolderContinueAsync methods to get the file listing.
  2. Use the DownloadZipAsync method to download the entire folder, as long as its contents are under the documented size and file count limits. With this method, you'd then need to unzip the resulting data to access the contents. The Dropbox SDK itself doesn't offer an unzipping method, so you may need a system method or a different library to do that.
Polls
Do you use Dropbox for work, personal use or both?
Tell us your thoughts?

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Need more support?