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: 

For list_folder, are folders always returned before files?

For list_folder, are folders always returned before files?

Quas94
Explorer | Level 3

EDIT:

I've played around a little more and it appears that not all folders are returned before files are returned. Is there any way to achieve this functionality? Or alternatively, is it possible to fetch only folders, and only files?

It appears that items are fetched from the database in order of creation_date, is that correct? If not, what's the order?

1 Reply 1

Greg-DB
Dropbox Staff

The Dropbox API /2/files/list_folder[/continue] endpoints do not necessarily return folders before files. There isn't a way to make them return folders first, or folders only, but I'll pass these along as feature requests. I can't promise if or when those might be implemented though. 

The entries returned by /2/files/list_folder[/continue] are returned in the order needed to retrieve an accurate representation of the state of the Dropbox account, so make sure you process them in the order received, per the /2/files/list_folder documentation.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?