What I did: Using dropbox-sdk-2-1-1 for java.
Api url: https://api.dropboxapi.com/2/files/list_folder
List folders in a dropbox folder. Set recursive to false.
All subFolders are returned, including shared folders.
However, if I set recursive to true. All subFolders with recursive subFolders are returned, except from shared folders.
Thanks in advance.