cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

List files and folders api

List files and folders api

dindayalpandey
Explorer | Level 3
"https://api.dropboxapi.com/2/files/list_folder" and 
"https://api.dropboxapi.com/2/files/list_folder/continue" endpoints lists all the contents inside the directory. But I want to list all the contents but first priority should be of subfolders. Which means if I have used pagination and requesting first 15 items then response should fetch all the directories first and then include files if any. Which simply means I wanted filter/ parameter in which I must be able to set orderby which takes some values like files/folders etc according to which it should fetch the contents. Is there any parameter in above endpoint which I am missing which will help me complete my goal? Any help would be great...
3 Replies 3

Greg-DB
Dropbox Staff

These endpoints don't offer a way to have subfolders listed first, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

dindayalpandey
Explorer | Level 3

Do you have other any api which will satisfy my condition, which I can use?

Greg-DB
Dropbox Staff

No, the API doesn't offer anything else quite like that. You'll need to retrieve all of the results and apply whatever sorting you want client-side.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    dindayalpandey Explorer | Level 3
What do Dropbox user levels mean?