We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
dindayalpandey
4 years agoExplorer | Level 3
List files and folders api
"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
- Greg-DB4 years ago
Dropbox Community Moderator
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.
- dindayalpandey4 years agoExplorer | Level 3
Do you have other any api which will satisfy my condition, which I can use?
- Greg-DB4 years ago
Dropbox Community Moderator
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 days ago
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 or Facebook.
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!