<?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: objc API: filesRoutes listFolder method not returning files in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288838#M17694</link>
    <description>&lt;P&gt;a minor update, I've updated to the latest objective-C SDK and the method call was tweaked to the code below but the results list still doesn't include any files, only the one subfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[[dropbox.filesRoutes listFolder:self.remoteFolder 
                              recursive:@(NO)
                       includeMediaInfo:@(NO)
                         includeDeleted:@(NO)
        includeHasExplicitSharedMembers:@(NO)
                  includeMountedFolders:@(YES) 
                                  limit:nil 
                             sharedLink:nil 
                  includePropertyGroups:nil]
          setResponseBlock:^(DBFILESListFolderResult *result, DBFILESListFolderError * routeError, DBRequestError *networkError) {
...
}]
&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sean&lt;/P&gt;</description>
    <pubDate>Fri, 03 Aug 2018 18:56:47 GMT</pubDate>
    <dc:creator>seanreilly</dc:creator>
    <dc:date>2018-08-03T18:56:47Z</dc:date>
    <item>
      <title>objc API: filesRoutes listFolder method not returning files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288819#M17692</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;My app has been on the iOS app store for years syncing successfully with dropbox. In the past few days many customers have encountered an error that seems to be a result of the following method not returning any files, but it does return one folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;[[&lt;/SPAN&gt;dropbox&lt;SPAN&gt;.&lt;/SPAN&gt;filesRoutes listFolder&lt;SPAN&gt;:&lt;/SPAN&gt;@"/.moneydancesync/c135b3cc-c10c-4a7d-83de-be55ec2c7e96"&amp;nbsp;recursive&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;@(&lt;/SPAN&gt;&lt;SPAN&gt;NO&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; includeMediaInfo&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;@(&lt;/SPAN&gt;&lt;SPAN&gt;NO&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; includeDeleted&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;@(&lt;/SPAN&gt;&lt;SPAN&gt;NO&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt; includeHasExplicitSharedMembers&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;@(&lt;/SPAN&gt;&lt;SPAN&gt;NO&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;setResponseBlock&lt;SPAN&gt;:^(&lt;/SPAN&gt;DBFILESListFolderResult&lt;SPAN&gt; *result, &lt;/SPAN&gt;DBFILESListFolderError&lt;SPAN&gt; * routeError, &lt;/SPAN&gt;DBRequestError&lt;SPAN&gt; *networkError) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there any reason this call would stop working all of a sudden? &amp;nbsp;Nothing changed on my side so I think it must be something on the dropbox/server side, or possibly that the underlying HTTP&amp;nbsp;API has changed?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please help, as I've got a lot of customers depending on my app's syncing via dropbox!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sean&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:11:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288819#M17692</guid>
      <dc:creator>seanreilly</dc:creator>
      <dc:date>2019-05-29T09:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: objc API: filesRoutes listFolder method not returning files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288837#M17693</link>
      <description>&lt;P&gt;I see you're calling &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:" target="_self"&gt;listFolder&lt;/A&gt;, but aren't calling &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt;. You aren't always guaranteed to get all entries returned by calling just&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:" target="_self"&gt;listFolder&lt;/A&gt;. You need to check the result, and if &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESListFolderResult.html#/c:objc(cs)DBFILESListFolderResult(py)hasMore" target="_self"&gt;DBFILESListFolderResult.hasMore&lt;/A&gt; is true, call back to&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt;&amp;nbsp;to get more results (and the same for the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt;&amp;nbsp;result). You can find more information in the &lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:" target="_self"&gt;listFolder documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The requirement to check&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESListFolderResult.html#/c:objc(cs)DBFILESListFolderResult(py)hasMore" target="_self"&gt;hasMore&lt;/A&gt; and use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt; as directed has always been part of API v2. Whether or not&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESListFolderResult.html#/c:objc(cs)DBFILESListFolderResult(py)hasMore" target="_self"&gt;hasMore&lt;/A&gt; actually comes back as true in practice however depends on a variety of factors that can change over time, per account, and per path. Due to some backend updates, how often this does happen may be increased right now, but we're working on improving that. In any case though, you'll still need to have&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolderContinue:" target="_self"&gt;listFolderContinue&lt;/A&gt;&amp;nbsp;implemented to guarantee that you get all of the results.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 18:56:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288837#M17693</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-08-03T18:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: objc API: filesRoutes listFolder method not returning files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288838#M17694</link>
      <description>&lt;P&gt;a minor update, I've updated to the latest objective-C SDK and the method call was tweaked to the code below but the results list still doesn't include any files, only the one subfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[[dropbox.filesRoutes listFolder:self.remoteFolder 
                              recursive:@(NO)
                       includeMediaInfo:@(NO)
                         includeDeleted:@(NO)
        includeHasExplicitSharedMembers:@(NO)
                  includeMountedFolders:@(YES) 
                                  limit:nil 
                             sharedLink:nil 
                  includePropertyGroups:nil]
          setResponseBlock:^(DBFILESListFolderResult *result, DBFILESListFolderError * routeError, DBRequestError *networkError) {
...
}]
&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sean&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 18:56:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288838#M17694</guid>
      <dc:creator>seanreilly</dc:creator>
      <dc:date>2018-08-03T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: objc API: filesRoutes listFolder method not returning files</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288839#M17695</link>
      <description>&lt;P&gt;Thanks for the fix! &amp;nbsp;I should've known that as I made the same change on Android years ago.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 18:58:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/objc-API-filesRoutes-listFolder-method-not-returning-files/m-p/288839#M17695</guid>
      <dc:creator>seanreilly</dc:creator>
      <dc:date>2018-08-03T18:58:54Z</dc:date>
    </item>
  </channel>
</rss>

