cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
From Dropbox Dash and Dropbox AI to seamless integrations with tools like Gmail, learn how Dropbox makes your day more efficient and easier, and how sci-fi is becoming reality 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: 
1
Ask
2
Reply and help

Get Size of a Folder

Get Size of a Folder

ererr
Explorer | Level 3

How can i get the size of a particular folder in DropBox using V2 call or V1 please solve this...?

5 Replies 5

Re: Get Size of a Folder

Greg-DB
Dropbox Staff

The Dropbox API doesn't offer a direct way to get the total size of a folder's contents, but I'll pass this along as a feature request. 

If you need to know the total size of the contents of a folder, you'd need to list all of the contents using /2/files/list_folder[/continue] and then sum up the `size`s for all of the files. (You can use the `recursive` parameter on /2/files/list_folder to request nested files too.)

Re: Get Size of a Folder

bellomsean
Helpful | Level 5

@Greg-DB

Is it now possible to get the size of a folder?
or we still need to do it manually as you said?

Re: Get Size of a Folder

Greg-DB
Dropbox Staff

@bellomsean No, unfortunately the API still doesn't offer a way to do this directly, so you'd still need to calculate the sum.

Re: Get Size of a Folder

LouisCorleone
New member | Level 2

Still need to calculate the sum?

Re: Get Size of a Folder

Greg-DB
Dropbox Staff

@LouisCorleone Yes, that's correct. The Dropbox API still doesn't offer a way to retrieve this value directly.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    LouisCorleone New member | Level 2
  • User avatar
    bellomsean Helpful | Level 5
What do Dropbox user levels mean?
Need more support?