<?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: how long is a cursor valid for? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185428#M7818</link>
    <description>&lt;P&gt;Moved to the API forum.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Aug 2016 19:27:25 GMT</pubDate>
    <dc:creator>Rich</dc:creator>
    <dc:date>2016-08-25T19:27:25Z</dc:date>
    <item>
      <title>how long is a cursor valid for?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185427#M7817</link>
      <description>&lt;P&gt;I've been testing the list files API, but seeing unexpected results. Basically, I ask info on a path, process the results, and then ask for a "new" cursor via&amp;nbsp;"listFolderGetLatestCursor" but it says there are no changes. &amp;nbsp;Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;// make request for path&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ListFolderBuilder listFolderBuilder = client.files().listFolderBuilder(path);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; //.... do work...&lt;BR /&gt;&amp;nbsp; &amp;nbsp;// get more results&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; result = client.files().listFolderContinue(result.getCursor());&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // get new cursor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; String cursor2 = client.files().listFolderGetLatestCursor(path).getCursor();&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // store cursor&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // modify files, do stuff...&lt;BR /&gt;&amp;nbsp; &amp;nbsp; // come back 1 day later&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; result = client.files().listFolderContinue(cursor2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; // report of nothing changed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:30:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185427#M7817</guid>
      <dc:creator>Adam B.38</dc:creator>
      <dc:date>2019-05-29T09:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: how long is a cursor valid for?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185428#M7818</link>
      <description>&lt;P&gt;Moved to the API forum.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 19:27:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185428#M7818</guid>
      <dc:creator>Rich</dc:creator>
      <dc:date>2016-08-25T19:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: how long is a cursor valid for?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185429#M7819</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/39135256/dropbox-api-cursors-how-long-are-they-valid-for-and-using-them-properly-over-ti" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/39135256/dropbox-api-cursors-how-long-are-they-valid-for-and-using-them-properly-over-ti&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;Cursors don't expire (but they can be "&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v2.1.x/com/dropbox/core/v2/files/ListFolderContinueError.html#RESET" target="_blank" rel="nofollow noreferrer"&gt;reset&lt;/A&gt;").&lt;/P&gt;
&lt;P&gt;To stay up to date though, you shouldn't call listFolderGetLatestCursor after you've already begun getting a listing. Instead, you should use the last cursor returned from listFolder or listFolderContinue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try that out and let me know if you're still having trouble, and if so, please share your latest code. (I notice your code is a bit different between here and your StackOverflow post, so I'm not sure exactly what you're doing.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 00:37:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185429#M7819</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-08-26T00:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: how long is a cursor valid for?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185430#M7820</link>
      <description>&lt;P&gt;Gregory --&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks. I put a bit more detail in the StackOverflow post mostly out of having issues formatting the code here. &amp;nbsp;Anything beyond that was accidental. I'll give it a try without calling&amp;nbsp;&lt;EM&gt;listFolderGetLatestCursor&lt;/EM&gt; and see if that improves things, hopefully it will.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 02:50:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185430#M7820</guid>
      <dc:creator>Adam B.38</dc:creator>
      <dc:date>2016-08-26T02:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: how long is a cursor valid for?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185431#M7821</link>
      <description>&lt;P&gt;Gregory --&lt;/P&gt;
&lt;P&gt;&amp;nbsp; That did seem to do the trick, reusing the cursor and not calling &lt;EM&gt;listFolderGetLatestCursor&amp;nbsp;&lt;/EM&gt;meant that after 16 hours, I was getting the changes I expected. I'll leave the StackOverflow question open for a day or two if you want to post the answer there and get the credit.&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;
&lt;P&gt;- adam&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 21:38:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-long-is-a-cursor-valid-for/m-p/185431#M7821</guid>
      <dc:creator>Adam B.38</dc:creator>
      <dc:date>2016-08-26T21:38:43Z</dc:date>
    </item>
  </channel>
</rss>

