You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

sagar_lonkar's avatar
sagar_lonkar
Explorer | Level 4
8 months ago

List folder returns shared folders & files even passing include_mounted_folders as false

 

We have following java method in SDK , but even passing false , it list shared folders

 

https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.1.x/com/dropbox/core/v2/files/ListFolderBuilder.html#withIncludeMountedFolders-java.lang.Boolean-

 

public ListFolderBuilder withIncludeMountedFolders(java.lang.Boolean includeMountedFolders)

 

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

include_mounted_foldersBooleanIf true, the results will include entries under mounted folders which includes app folder, shared folder and team folder. The default for this field is True.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    That include_mounted_folders documentation indicates that it controls whether or not to include entries under the mounted folders. So, the mounted folder (such as a shared folder) itself will still be listed, but the contents of that shared folder should not.

     

    If that's not what you're seeing, feel free to share the code and output.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,888 PostsLatest Activity: 3 hours ago
326 Following

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!