Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.

Forum Discussion

keval's avatar
keval
Explorer | Level 3
7 years ago

How to list only folders

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"

5 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    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's avatar
    EthanW
    Explorer | Level 3
    3 years ago

    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's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 2 hours ago
415 Following

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!