<?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 you in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/211518#M10646</link>
    <description>&lt;P&gt;To Dropbox Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You for providing real example of listfolderContinue: method. Also now no need of timestamp property (like servermodified) for non-file type.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You again,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 14:19:58 GMT</pubDate>
    <dc:creator>ponkymar</dc:creator>
    <dc:date>2017-03-14T14:19:58Z</dc:date>
    <item>
      <title>Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/209766#M10433</link>
      <description>&lt;P&gt;Can someone please provide me a real example to show how listfoldercontinue: method works with listfolder: in objective-c or in swift? I have read 100 times the description of listfoldercontinue: method but can't understand in the right way. my folder always remains empty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously I was using servermodified to know when the contents of a folder metdata changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To Dropbox team:&lt;/STRONG&gt; Is it possible to get &lt;EM&gt;clientmodified&lt;/EM&gt; and &lt;EM&gt;servermodified&lt;/EM&gt; properties for DBFILESFolderMeta as well too just like we have clientModified and serverModified properties are available only for DBFILESFileMetadata?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Ponky&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/209766#M10433</guid>
      <dc:creator>ponkymar</dc:creator>
      <dc:date>2019-05-29T09:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/209816#M10434</link>
      <description>&lt;P&gt;*moves to API forum*&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:55:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/209816#M10434</guid>
      <dc:creator>Mark</dc:creator>
      <dc:date>2017-03-04T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/210079#M10461</link>
      <description>Thanks for the post! I don't believe we have a sample exactly like that available, so I'll send this along as a request for one.&lt;BR /&gt;&lt;BR /&gt;I'm also sending this along as a request for modified times on non-file metadata, but I can't make any promises as to if or when that would be implemented and released. Using listFolder/listFolderContinue is a better way to keep track of changes.</description>
      <pubDate>Mon, 06 Mar 2017 19:11:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/210079#M10461</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-06T19:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/210392#M10494</link>
      <description>The team just added a new sample to the README that shows how to use listFolder and listFolderContinue together:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-obj-c#rpc-style-request&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!</description>
      <pubDate>Tue, 07 Mar 2017 21:58:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/210392#M10494</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-07T21:58:00Z</dc:date>
    </item>
    <item>
      <title>you</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/211518#M10646</link>
      <description>&lt;P&gt;To Dropbox Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You for providing real example of listfolderContinue: method. Also now no need of timestamp property (like servermodified) for non-file type.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You again,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:19:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/211518#M10646</guid>
      <dc:creator>ponkymar</dc:creator>
      <dc:date>2017-03-14T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/324025#M19049</link>
      <description>&lt;P&gt;Here is some example Swift code based on the Objective C code. This works for me to get all of the folders and directories including shared folders and directories.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;    func listFolderContinueWithClient(client: DropboxClient, cursor: String) {
        client.files.listFolderContinue(cursor: cursor).response { response, error in
            if let result = response {
                print("entries in continue:")
                
                for entry in result.entries {
                    //if entry.name.hasSuffix(".fm") {
                    if let folder = entry as? Files.FolderMetadata {
                        print("directory")
                        print(entry.pathDisplay!)
                        self.dropBoxDirectoryArray.append(URL(fileURLWithPath: entry.pathLower!))
                    }else{
                        //print(entry.name)
                        print(entry.pathDisplay!)
                        self.dropBoxFileArray.append(URL(fileURLWithPath: entry.pathLower!))
                    }
                }
                if result.hasMore == true {
                    self.listFolderContinueWithClient(client: client, cursor: cursor)
                }else{
                    print("no more entries")
                }
            } else {
                print("Error: \(error!)")
            }
        }

    }
    
    // FIXME: - root controler button click
    @objc func onClickBarButton(sender: UIBarButtonItem)
    {
        if sender.tag == 40 { // get from dropBox

            print("This is Directory Array")
            dump(self.dropBoxDirectoryArray)
            print("This is File array")
            dump(self.dropBoxFileArray)

            
            if let client = DropboxClientsManager.authorizedClient {
                client.files.listFolder(path: "", recursive: true).response { response, error in
                    if let result = response {
                        print("Folder contents:")
                        
                        for entry in result.entries {
                            //if entry.name.hasSuffix(".fm") {
                            if let folder = entry as? Files.FolderMetadata {
                                print("directory")
                                print(entry.pathLower!) // check for unmounted folders with a null pathLower
                                self.dropBoxDirectoryArray.append(URL(fileURLWithPath: entry.pathLower!))
                            }else{
                                //print(entry.name)
                                print(entry.pathDisplay!)
                                self.dropBoxFileArray.append(URL(fileURLWithPath: entry.pathLower!))
                            }
                        }
                        if result.hasMore == true {
                            self.listFolderContinueWithClient(client: client, cursor: result.cursor)
                        }else{
                        }
                    } else {
                        print("Error: \(error!)")
                    }
                    

                }

            }else{

                var topController = UIApplication.shared.keyWindow?.rootViewController
                while let presentedViewController = topController!.presentedViewController {
                   topController = presentedViewController
                }
                
                DropboxClientsManager.authorizeFromController(UIApplication.shared,
                   controller: topController,
                   openURL: { (url: URL) -&amp;gt; Void in
                   UIApplication.shared.open(url, options: [:], completionHandler: nil)
                })
            }
            

        }&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Jan 2019 01:00:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/324025#M19049</guid>
      <dc:creator>brduffy</dc:creator>
      <dc:date>2019-01-19T01:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/454063#M23452</link>
      <description>&lt;P&gt;in recursive call shouldn't it be&lt;/P&gt;&lt;PRE&gt;self.listFolderContinueWithClient(client: client, cursor: result.cursor)&lt;/PRE&gt;&lt;P&gt;instead of this&lt;/P&gt;&lt;PRE&gt;self.listFolderContinueWithClient(client: client, cursor: cursor)&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 11:12:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/454063#M23452</guid>
      <dc:creator>siddharth chauhan</dc:creator>
      <dc:date>2020-09-17T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Real Example of ListFolderContinue: method in Objective-C</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/454170#M23456</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1351947"&gt;@siddharth chauhan&lt;/a&gt;&amp;nbsp;Yes, you're correct. The app should use the latest returned cursor, which would be&amp;nbsp;result.cursor there.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 16:47:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Real-Example-of-ListFolderContinue-method-in-Objective-C/m-p/454170#M23456</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-09-17T16:47:44Z</dc:date>
    </item>
  </channel>
</rss>

