Forum Discussion

IlanAgenbacht's avatar
IlanAgenbacht
New member | Level 2
7 years ago

C# How can i see folder size?

Hi there,

I'm trying to implement a progress bar when getting a folder using the DownloadZipAsync() method. I need to get the size of the folder im downloading, perhaps i've missed something as i cant seem to find anyway to do this programmatically?

I've been using this post as a guide: https://www.dropboxforum.com/t5/API-Support-Feedback/How-to-get-Progress-Status-while-uploading-downloading-a-file-in/m-p/170685/highlight/true#M6405

Thanks in advance, apologies if this has already been asked and resolved elsewhere.

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    Unfortunately, the Dropbox API doesn't return the total size of the folder zip download, so it's not possible to get this ahead of time for the sake of progress tracking.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!