One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
TarDruggan
8 years agoExplorer | Level 4
Using REST API v2 Looking for a way to have returned list of directories in root directory
Developing a client to use DropBox using C++ on a low resource device (no harddrive).
Would like to list the contents of a directory such that directories are list at the top and any files below. I have searched through the API list and have found out how to use:
- /files/search
- /files/list_folder
but neither of these let me order or filter the results bases on the basis of file vs folder. Since this is a low resource box it is not possible to cache data between sessions.
My Use Case is a user that has a few thousand files and 10 directories in the root directory. It would be a poor user experience to download information on each file every time the user I want to list the root directory.
Is there a API or path I missed?
Thank You
- Greg-DB
Dropbox Staff
The API unfortunately doesn't offer sorting/filtering options for listing files and folders like this, but I'll pass this along as a feature request. Apologies I don't have a better answer for you!- TarDrugganExplorer | Level 4
Thank You for the information. I will follow the API updates as you release them.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 4 hours ago
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 or Facebook.
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!