<?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 Re: When listing files in a path using api v2, is there a limit of any kind ? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297938#M18097</link>
    <description>&lt;P&gt;hi Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick reply. Indeed after looping on the .hasMore() i was able to get all my entries. So your suggestion fixed my problem. However, I am curious why did this behavior occur just now, since I've been using the approach you saw in my post for the last 2 years or so and I was getting all the entries in a single call.&lt;/P&gt;
&lt;P&gt;-victor&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 09:32:15 GMT</pubDate>
    <dc:creator>victorvlad</dc:creator>
    <dc:date>2018-09-19T09:32:15Z</dc:date>
    <item>
      <title>When listing files in a path using api v2, is there a limit of any kind ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297787#M18070</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;final DbxClientV2 dbxClient = dropboxService.getDropboxClient(user.getAccessToken());

        try {
            final ListFolderResult listResult = dbxClient.files()
                    .listFolderBuilder(path)
                    .withRecursive(true)
                    .start();

....&lt;BR /&gt;}&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dropboxListDebug.JPG" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/6059i7DC3D89C59D0CD52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dropboxListDebug.JPG" alt="dropboxListDebug.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dropboxListActualFolder.JPG" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/6060iC4B3D2B7EF41C24B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dropboxListActualFolder.JPG" alt="dropboxListActualFolder.JPG" /&gt;&lt;/span&gt;&lt;/PRE&gt;&lt;P&gt;Using this piece of code, I get as a result a single folder&amp;nbsp;but in reality that's not the case. This behavior just started to happen today. Up until today, the result contained all files/folders that actually exist in that path... so I was wondering if there is any limit in size or number of files based on which the result object is populated...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The folder I'm trying to list from, contains&amp;nbsp;3.5K files, with a total of 7GB in size..&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:10:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297787#M18070</guid>
      <dc:creator>victorvlad</dc:creator>
      <dc:date>2019-05-29T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: When listing files in a path using api v2, is there a limit of any kind ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297804#M18073</link>
      <description>&lt;P&gt;I see you're using&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;, but aren't calling &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank"&gt;listFolderContinue&lt;/A&gt;. You aren't always guaranteed to get all entries returned by calling just listFolder. You need to check the result, and if &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderResult.html#hasMore" target="_blank"&gt;ListFolderResult.hasMore&lt;/A&gt; is true, call back to &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank"&gt;listFolderContinue&lt;/A&gt; to get more results (and the same for the &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderContinue-java.lang.String-" target="_blank"&gt;listFolderContinue&lt;/A&gt; result). You can find more information in &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolder-java.lang.String-" target="_blank"&gt;the listFolder documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Whether or not hasMore actually comes back as true in practice depends on a variety of factors that can change over time, per account, and per path.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 17:53:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297804#M18073</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-09-18T17:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: When listing files in a path using api v2, is there a limit of any kind ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297938#M18097</link>
      <description>&lt;P&gt;hi Greg,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick reply. Indeed after looping on the .hasMore() i was able to get all my entries. So your suggestion fixed my problem. However, I am curious why did this behavior occur just now, since I've been using the approach you saw in my post for the last 2 years or so and I was getting all the entries in a single call.&lt;/P&gt;
&lt;P&gt;-victor&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:32:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297938#M18097</guid>
      <dc:creator>victorvlad</dc:creator>
      <dc:date>2018-09-19T09:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: When listing files in a path using api v2, is there a limit of any kind ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297995#M18099</link>
      <description>&lt;P&gt;The requirement to use listFolderContinue has always been part of API v2, but the amount of entries you get back per page can vary due to a number of things that can change over time. I can't say exactly what caused the change in this particular case,&amp;nbsp;so just make sure you always have&amp;nbsp;listFolderContinue implemented as documented so you can make sure to get everything.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:49:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297995#M18099</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-09-19T14:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: When listing files in a path using api v2, is there a limit of any kind ?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297996#M18100</link>
      <description>&lt;P&gt;Ok. Got it. Thanks ! Have a nice day !&lt;/P&gt;&lt;P&gt;-victor&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:51:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/When-listing-files-in-a-path-using-api-v2-is-there-a-limit-of/m-p/297996#M18100</guid>
      <dc:creator>victorvlad</dc:creator>
      <dc:date>2018-09-19T14:51:32Z</dc:date>
    </item>
  </channel>
</rss>

