<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Listing doesn't get deeper from the root folder in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-doesn-t-get-deeper-from-the-root-folder/m-p/272487#M16180</link>
    <description>&lt;P&gt;I'm trying to get a list of all files in the dropbox by using listFolder and listFolderContinue.&amp;nbsp; However I only get the list of files/folders in the root, but it doesn't go deeper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = &lt;SPAN&gt;new &lt;/SPAN&gt;DbxRequestConfig(&lt;SPAN&gt;"dropbox/java-tutorial"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"en_US"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;DbxClientV2 client = &lt;SPAN&gt;new &lt;/SPAN&gt;DbxClientV2(config&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ACCESS_TOKEN&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    ListFolderResult result = client.files().listFolder(&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;(&lt;SPAN&gt;true&lt;/SPAN&gt;) {&lt;BR /&gt;        &lt;SPAN&gt;for &lt;/SPAN&gt;(Metadata metadata : result.getEntries()) {&lt;BR /&gt;            System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(metadata.getPathLower())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(!result.getHasMore()) {&lt;BR /&gt;            &lt;SPAN&gt;break;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        result = client.files().listFolderContinue(result.getCursor())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;} &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException e) {&lt;BR /&gt;    e.printStackTrace()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;What I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping me!!&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:13:55 GMT</pubDate>
    <dc:creator>balipa</dc:creator>
    <dc:date>2019-05-29T09:13:55Z</dc:date>
    <item>
      <title>Listing doesn't get deeper from the root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-doesn-t-get-deeper-from-the-root-folder/m-p/272487#M16180</link>
      <description>&lt;P&gt;I'm trying to get a list of all files in the dropbox by using listFolder and listFolderContinue.&amp;nbsp; However I only get the list of files/folders in the root, but it doesn't go deeper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = &lt;SPAN&gt;new &lt;/SPAN&gt;DbxRequestConfig(&lt;SPAN&gt;"dropbox/java-tutorial"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"en_US"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;DbxClientV2 client = &lt;SPAN&gt;new &lt;/SPAN&gt;DbxClientV2(config&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ACCESS_TOKEN&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    ListFolderResult result = client.files().listFolder(&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    while &lt;/SPAN&gt;(&lt;SPAN&gt;true&lt;/SPAN&gt;) {&lt;BR /&gt;        &lt;SPAN&gt;for &lt;/SPAN&gt;(Metadata metadata : result.getEntries()) {&lt;BR /&gt;            System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(metadata.getPathLower())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;if &lt;/SPAN&gt;(!result.getHasMore()) {&lt;BR /&gt;            &lt;SPAN&gt;break;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        result = client.files().listFolderContinue(result.getCursor())&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;} &lt;SPAN&gt;catch &lt;/SPAN&gt;(DbxException e) {&lt;BR /&gt;    e.printStackTrace()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;What I'm doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping me!!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-doesn-t-get-deeper-from-the-root-folder/m-p/272487#M16180</guid>
      <dc:creator>balipa</dc:creator>
      <dc:date>2019-05-29T09:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Listing doesn't get deeper from the root folder</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-doesn-t-get-deeper-from-the-root-folder/m-p/272647#M16191</link>
      <description>&lt;P&gt;If you want nested entries, you'll need to use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderBuilder-java.lang.String-" target="_blank"&gt;listFolderBuilder&lt;/A&gt;&amp;nbsp;to get a&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html" target="_blank"&gt;ListFolderBuilder&lt;/A&gt;&amp;nbsp;on which you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html#withRecursive-java.lang.Boolean-" target="_self"&gt;withRecursive&lt;/A&gt;&amp;nbsp;and pass in true to tell&amp;nbsp;Dropbox that you want a recursive listing result, i.e., to return nested items. You can call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html#start--" target="_blank"&gt;ListFolderBuilder.start&lt;/A&gt; to then start the call.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:40:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Listing-doesn-t-get-deeper-from-the-root-folder/m-p/272647#M16191</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-16T15:40:26Z</dc:date>
    </item>
  </channel>
</rss>

