cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

Get List of folders

Get List of folders

Naga Abhinaya T
Explorer | Level 4
Go to solution

Hi,

 

I am using dropbox V2 rest apis for my application. I have an usecase to be resolved. There is an api to list all the files and folders within the given folder path. Is there a way to retrieve  only the folders within the given folder path? I know that we can differentiate the folders and files using the ".tag" key value. Is there any filter that can be directly applied to get the folders alone? Please advise on this. Thanks in advance.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
No, the API doesn't offer the ability to filter to folders only, but I'll pass this along as a feature request.

View solution in original post

6 Replies 6

Greg-DB
Dropbox Staff
Go to solution
No, the API doesn't offer the ability to filter to folders only, but I'll pass this along as a feature request.

Naga Abhinaya T
Explorer | Level 4
Go to solution

Thanks Greg!

RRhilary
New member | Level 2
Go to solution

ability to report / list the folder structure's across our shared dropbox environment is sadly missing, it will take someone days to manually document our current shared structure - any plans to get this in place would be hugely relevant to companies adopting dropbox across their teams 

 

thanks

Greg-DB
Dropbox Staff
Go to solution

Thanks for the feedback! I don't have an update on this feature request, but I'll be sure to add your message to it.

Just to be clear though, while the Dropbox API doesn't offer a way to filter to folders on the server, but you can still programmatically list everything and apply that filtering client-side. To do so, you would use /2/files/list_folder[/continue] with recursive=true, and filter down to folder entries only:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue

yatin_manchanda
Explorer | Level 4

Hi @Greg-DB  , I had the same question and wanted to confirm if this still applies, or is there some way to list only subfolders?

Greg-DB
Dropbox Staff

@yatin_manchanda This is still accurate; the Dropbox API still doesn't offer an option for listing subfolders only.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    yatin_manchanda Explorer | Level 4
  • User avatar
    RRhilary New member | Level 2
  • User avatar
    Naga Abhinaya T Explorer | Level 4
What do Dropbox user levels mean?