<?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 [SwiftyDropbox] client.files.listFolder(recursive: true) doesn't list shared folders in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156842#M5280</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;a trouble we have here is fairly simple to reproduce.&lt;/P&gt;
&lt;P&gt;We're using Client.files.listFolder(recursive: true) for scanning a particular directory and its subdirectories to quickly find files with necessary extensions. It was working good and great until we noticed that it doesn't exactly work with shared folders.&lt;/P&gt;
&lt;P&gt;listFolder(recursive: false) works just great and allows us browse, view contents and download necessary files from shared folders. But, when using listFolder(recursive: true) API simply doesn't return any files for shared folders.&lt;/P&gt;
&lt;P&gt;For example, calling listFolder(recursive: true) on a root folder with contents like below:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;simple folder&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;shared folder&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;simple file&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;will contain&amp;nbsp;files and subdirectories from "simple folder" and "simple file" but will contain nothing from "shared folder".&lt;/P&gt;
&lt;P&gt;Calling listFolder(recursive: true) on a shared folder itself will return no files and folders. And it doesn't matter if we're scanning from an account that created the shared folder, or from an account that was invited to use the shared folder.&lt;/P&gt;
&lt;P&gt;After trying to find something else in the SDK for listing shared folders (and failing at it), I decided to ask here. Is this a bug in the API? I suppose it is, because listFolder() doesn't require any special permissions without recursive flag set to true. Or do I miss something here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if it is a bug, could you please tell me how long do you think it will take to fix it? We're kinda getting ready to push another build into production and I REAAAAAAALLY &amp;nbsp;don't want to write an awful workaround that will include sending a bunch of requests to scan the contents of a folder and its subfolders.&lt;/P&gt;
&lt;P&gt;Is there anything I can do to help you speed up the bugfix?&lt;/P&gt;
&lt;P&gt;Also, do you accept new contributors to SwiftyDropbox? I have a bunch of new ideas, and would be happy to help you improve the SDK.&lt;/P&gt;
&lt;P&gt;Thanks in advance, Gregory!&lt;BR /&gt;Best regards,&lt;BR /&gt;Aibek.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:35:07 GMT</pubDate>
    <dc:creator>Aibek D.</dc:creator>
    <dc:date>2019-05-29T09:35:07Z</dc:date>
    <item>
      <title>[SwiftyDropbox] client.files.listFolder(recursive: true) doesn't list shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156842#M5280</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;a trouble we have here is fairly simple to reproduce.&lt;/P&gt;
&lt;P&gt;We're using Client.files.listFolder(recursive: true) for scanning a particular directory and its subdirectories to quickly find files with necessary extensions. It was working good and great until we noticed that it doesn't exactly work with shared folders.&lt;/P&gt;
&lt;P&gt;listFolder(recursive: false) works just great and allows us browse, view contents and download necessary files from shared folders. But, when using listFolder(recursive: true) API simply doesn't return any files for shared folders.&lt;/P&gt;
&lt;P&gt;For example, calling listFolder(recursive: true) on a root folder with contents like below:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;simple folder&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;shared folder&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;simple file&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;will contain&amp;nbsp;files and subdirectories from "simple folder" and "simple file" but will contain nothing from "shared folder".&lt;/P&gt;
&lt;P&gt;Calling listFolder(recursive: true) on a shared folder itself will return no files and folders. And it doesn't matter if we're scanning from an account that created the shared folder, or from an account that was invited to use the shared folder.&lt;/P&gt;
&lt;P&gt;After trying to find something else in the SDK for listing shared folders (and failing at it), I decided to ask here. Is this a bug in the API? I suppose it is, because listFolder() doesn't require any special permissions without recursive flag set to true. Or do I miss something here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if it is a bug, could you please tell me how long do you think it will take to fix it? We're kinda getting ready to push another build into production and I REAAAAAAALLY &amp;nbsp;don't want to write an awful workaround that will include sending a bunch of requests to scan the contents of a folder and its subfolders.&lt;/P&gt;
&lt;P&gt;Is there anything I can do to help you speed up the bugfix?&lt;/P&gt;
&lt;P&gt;Also, do you accept new contributors to SwiftyDropbox? I have a bunch of new ideas, and would be happy to help you improve the SDK.&lt;/P&gt;
&lt;P&gt;Thanks in advance, Gregory!&lt;BR /&gt;Best regards,&lt;BR /&gt;Aibek.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:35:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156842#M5280</guid>
      <dc:creator>Aibek D.</dc:creator>
      <dc:date>2019-05-29T09:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: [SwiftyDropbox] client.files.listFolder(recursive: true) doesn't list shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156843#M5281</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Aibek, when you see this behavior, does your&amp;nbsp;&lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/Files/ListFolderResult.html#/s:vCC13SwiftyDropbox5Files16ListFolderResult7hasMoreSb" target="_blank" rel="nofollow noreferrer"&gt;ListFolderResult&lt;/A&gt;&amp;nbsp;have hasMore set to true? If so, you need to call&amp;nbsp;listFolderContinue to get the rest of the results. You should have code to handle that in any case, but I don't see a mention of&amp;nbsp;listFolderContinue in your post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you are already handling that though.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 05:54:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156843#M5281</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-08T05:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: [SwiftyDropbox] client.files.listFolder(recursive: true) doesn't list shared folders</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156844#M5282</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;Thanks for a quick response!&lt;/P&gt;
&lt;P&gt;You were right, checking for hasTrue and retrieving more files did decide the problem! The nature of the problem and the fact it didn't list only shared folders, even if there was only 5-10 files in the whole dropbox account made me think that it's a bug.&lt;/P&gt;
&lt;P&gt;Big thank you again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 06:10:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-client-files-listFolder-recursive-true-doesn-t/m-p/156844#M5282</guid>
      <dc:creator>Aibek D.</dc:creator>
      <dc:date>2016-03-08T06:10:25Z</dc:date>
    </item>
  </channel>
</rss>

