Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

TarDruggan's avatar
TarDruggan
Explorer | Level 4
8 years ago

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

2 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    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!
  • TarDruggan's avatar
    TarDruggan
    Explorer | Level 4
    8 years ago

    Thank You for the information. I will follow the API updates as you release them.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!