Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here!
Forum Discussion
mikirey
2 months agoNew member | Level 2
Dropbox Cursor Behavior
Hello, I'm trying to confirm cursor behavior. - Is it safe to assume that Cursor is an offset into a transaction log per account, which is a sequential record of changes as they occurred in the ac...
mikirey
2 months agoNew member | Level 2
Isn't this /2/files/list_folder/get_latest_cursor for polling in a continuous session and you cannot go backwards in time? My program is not limited to one continuous session; hence the approach is to save the cursor in a database for example, and then I can adjust my scan schedule.
Here is the snippet from Dropbox article, Detecting Changes.
Polling
As a result of this property of folder cursors, storing the cursor value allows you to poll for changes to the target directory. Folder cursors are long-lived, but may expire if unused for an extend time. Thus, while polling, be sure to always update to the latest returned cursor - even if no results are returned. A call to continue with an expired cursor will return a 409 reset error. This indicates you should issue a new call to /files/list_folder and iterate to obtain a new cursor. If the folder itself that the cursor refers to is deleted, the call will return a 409 path error. If your application is only interested in changes going forward, the /files/list_folder/get_latest_cursor will return the most recent cursor, without needing to iterate through list and continue calls.
DB-Des
Dropbox Community Moderator
2 months ago/2/files/list_folder/get_latest_cursor is a way to quickly get a cursor for the folder's state, and yes you cannot go backwards in time. The /2/files/list_folder/get_latest_cursor endpoint is for an app which only needs to know about new files and modifications and doesn't need to know about files that already exist in Dropbox.
Whereas /2/files/list_folder[continue] provides you with details about files and folders that exist in Dropbox.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,018 PostsLatest Activity: 34 minutes ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!