We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
buttflattery
7 years agoExplorer | Level 4
Get the folder Size & Date
I am working on a PHP (Yii2) extension that uses DirectoryInterface and we can configure multiple adapters for that interface and DropboxAdapter is one of them i am working on. I need to get the si...
- 7 years ago
The Dropbox API doesn't return the total size or created/modified date for folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
Greg-DB
Dropbox Community Moderator
7 years agoThe Dropbox API doesn't return the total size or created/modified date for folders, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- buttflattery7 years agoExplorer | Level 4
Well, that is odd/shame for a filehosting service API to not return the folder size/modified date. Also i am not sure if the request you will forward will be accepted as this feature request has been in the queue for more than 6 Years now , see here https://github.com/BenExile/Dropbox/issues/61
So currently we are left with iterating the files inside the folder and calculating their size to show the folder size as far as i can think of a solution.
And to get the modified date i have to do the same process on the files and sort them by date to find the modified date of the folder.
About 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!