title: Dropbox API List Folder and Folder recursive
body: <p>How to list the folder hierarchy and existens files inside Dropbox account?
  The method below lists only the folders of the root directory. Anyone know the library will tell if there is something ready for such functionality?</p>
  
  <pre><code>    ListFolderResult result;
      try {
          result = client.files().listFolder(StringUtils.EMPTY);
  
          while (true) {
              for (Metadata metadata : result.getEntries()) {
                  System.out.println(metadata.getPathLower());
              }
  
              if (!result.getHasMore()) {
                  break;
              }
              result = client.files().listFolderContinue(result.getCursor());
          }
      } catch (DbxException exception) {
          System.out.println(exception.toString());
      }
  </code></pre>