<?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 - Read User's File Structure in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-Read-User-s-File-Structure/m-p/214203#M10955</link>
    <description>&lt;P&gt;What's the best way to setup a collection view emulating the file/folder structure the user has&amp;nbsp;on their account? I know if I use the recursive method&amp;nbsp;it'll take ages before it fully finishes depending on the user, which is absolutely understandable. So I guess I'm just curious what the best way of calling and retrieving the data would be? I believe I'd be calling:&lt;/P&gt;&lt;PRE&gt;listFolder(path: String, recursive: = true, includeMediaInfo = true)&lt;/PRE&gt;&lt;P&gt;and once a response returns pass in the folder's cursor and call:&lt;/P&gt;&lt;PRE&gt;listFolderContinue(cursor: String)&lt;/PRE&gt;&lt;P&gt;Is this the direction I should be headed? Any help is greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:24:10 GMT</pubDate>
    <dc:creator>Sam F.6</dc:creator>
    <dc:date>2019-05-29T09:24:10Z</dc:date>
    <item>
      <title>SwiftyDropbox - Read User's File Structure</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-Read-User-s-File-Structure/m-p/214203#M10955</link>
      <description>&lt;P&gt;What's the best way to setup a collection view emulating the file/folder structure the user has&amp;nbsp;on their account? I know if I use the recursive method&amp;nbsp;it'll take ages before it fully finishes depending on the user, which is absolutely understandable. So I guess I'm just curious what the best way of calling and retrieving the data would be? I believe I'd be calling:&lt;/P&gt;&lt;PRE&gt;listFolder(path: String, recursive: = true, includeMediaInfo = true)&lt;/PRE&gt;&lt;P&gt;and once a response returns pass in the folder's cursor and call:&lt;/P&gt;&lt;PRE&gt;listFolderContinue(cursor: String)&lt;/PRE&gt;&lt;P&gt;Is this the direction I should be headed? Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-Read-User-s-File-Structure/m-p/214203#M10955</guid>
      <dc:creator>Sam F.6</dc:creator>
      <dc:date>2019-05-29T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox - Read User's File Structure</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-Read-User-s-File-Structure/m-p/214238#M10968</link>
      <description>&lt;P&gt;First, for reference, using &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes10listFolderFT4pathSS9recursiveSb16includeMediaInfoSb14includeDeletedSb31includeHasExplicitSharedMembersSb_GCS_10RpcRequestCCS_5Files26ListFolderResultSerializerCS2_25ListFolderErrorSerializer_" target="_self"&gt;listFolder&lt;/A&gt; and &lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes18listFolderContinueFT6cursorSS_GCS_10RpcRequestCCS_5Files26ListFolderResultSerializerCS2_33ListFolderContinueErrorSerializer_" target="_self"&gt;listFolderContinue&lt;/A&gt; is the right way to get the metadata for the files and folders in an account. Whether or not you use the recursive=true, you should call listFolder first, and then call back to listFolderContinue using that returned cursor, if instructed to do so by hasMore. (The documentation has more information on how to process these.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need all of the entries for an account together/at once, you should use recursive=true. As you noted that though, that can take some time if the user has many items.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need everything at once, e.g., if you want to just display one folder at a time as the user browses through them, you can use recursive=false, and just list the next folder on demand. It sounds like that's what you're looking for here.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2017 13:09:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-Read-User-s-File-Structure/m-p/214238#M10968</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-04-01T13:09:49Z</dc:date>
    </item>
  </channel>
</rss>

