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.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java SDK "files().listFolder and files().listFolderContinue" does not list all folders

Java SDK "files().listFolder and files().listFolderContinue" does not list all folders

charleydeng
New member | Level 2

dropbox.png

The SDK cannot list the above folders, what is the reason?

1 Reply 1

Greg-DB
Dropbox Staff

By default, API calls operate in the "member folder" of the connected account, not the "team space". You can configure API calls to operate in the "team space" instead though. To do so, you'll need to set the "Dropbox-Api-Path-Root" header. You can find information on this in the Team Files Guide. In the Java SDK, you can use the withPathRoot​ method to set that header.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?