2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
James_T
4 years agoHelpful | Level 6
Quickest way to check if a folder and subfolders are empty?
I only want the Dropbox Embedder to show if the specified folder actually have any files in it. What is the best way to figure out if a folder (or subfolder) has any files? At first I thought a...
James_T
4 years agoHelpful | Level 6
Thanks for your reply.
The folder I tested list_folder with, contains only 4 directories. The API call only returned 1 folder (+ the root folder). Is that normal behavior?
It thought it would only require the continue call if there were lots of folder/files?
Greg-DB
Dropbox Community Moderator
4 years agoThe number of entries you get back per page is not guaranteed, and it may require multiples calls even if there is not a large number of entries. You'll need to implement both list_folder and list_folder/continue and always call back for more entries until has_more is false in order to get the full listing.
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!