cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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?

Highlighted

For list_folder, are folders always returned before files?

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
Highlighted

Re: For list_folder, are folders always returned before files?

Dropboxer

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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?