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: 

Re: How to list only folders

How to list only folders

keval
Explorer | Level 3

I need to list down all folder without file & recursive as well.

I use below API for that
https://api.dropboxapi.com/2/files/list_folder
'path'=>'','recursive'=>true,'include_media_info'=>true,'include_mounted_folders'=>true,'include_property_groups'=>"folder"

3 Replies 3

Greg-DB
Dropbox Staff

The Dropbox API unfortunately does not offer a way to list folders only, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

As a workaround, you'll need to list everything and filter out the file entries client-side.

EthanW
Explorer | Level 3

Has there been any movement on this? It is inefficient and puts an unnecessary load on Dropbox to be pulling all files when all that some of us need in our solutions are folders.

Greg-DB
Dropbox Staff

@EthanW No, I don't have an update on this. Thanks for the feedback!

Need more support?