title: Java, Dropbox V2 : Get only names and paths of folders, not files.
body: <p>Dropbox sdk version : 3.0.3</p>
  
  <p>Hello friends,</p>
  
  <p>I am working on migrating dropbox to v2. Other tasks like upload, download, delete are complete, but we are having some issues with folder-names and path. I would like to get a list of folders only from Dropbox, so user can upload files to the desired folder. Whenever I try the below code, I get files as well, and the method is listFolders. </p>
  
  <p>How can I get folders only with V2 API? Thank you. </p>
  
  <p>Code :</p>
  
  <pre><code>      DbxClientV2 client = new DbxClientV2(config, person.getDropboxAccessToken());
              ListFolderResult listing = client.files().listFolderBuilder("").start();
    for (Metadata child : listing.getEntries()) {
                  stringList.put(child.getPathDisplay(),child.getPathDisplay());
              }
  </code></pre>
  
  <p>This stringList is just for testing, but in entries, I cannot get folders. Thank you. </p>