cancel
Showing results for 
Search instead for 
Did you mean: 

Using REST API v2 Looking for a way to have returned list of directories in root directory

59 Views
2 Comments
1 Kudo
Highlighted
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

2 Replies
Dropboxer

Re: Using REST API v2 Looking for a way to have returned list of directories in root directory

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!
Level 4

Re: Using REST API v2 Looking for a way to have returned list of directories in root directory

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