Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
In my application I've implemented this logic in order to reduce significatly the traffic, but get_last_cursor() doesn't seem to work properly.
Issue: In the next call get_last_cursor() result always changes so It's also never matching my stored cursor, even if no edit nor API calls has been done at the specified path, making the optimization worthless.
I also tried to store the cursor from an extra get_last_cursor() call just after the recursive call from last list_folder/continue, but with same result.
From api docs "A way to quickly get a cursor for the folder's state.", but looks like the folder's state is constantly changes, even if it's not.
How can I solve?
Thanks in advance.
Hi @rodriguezo,
You have conceptual mistake. Cursor (including the last one) represent somehow particular enumeration state. It's an opaque object and you shouldn't suppose existence of any features that are not explicitly supported (that what you are actually doing)! Where did you read that cursors are comparable? 🧐 Actually, they are not and you should use them as arguments to appropriate APIs only (as described in the documentation). 😉 Even more: in your particular case you don't need the last cursor. It's clear what you are trying to optimize, but (as I mentioned) it's impossible.
Hope this clarifies matter.
Hi @rodriguezo,
You have conceptual mistake. Cursor (including the last one) represent somehow particular enumeration state. It's an opaque object and you shouldn't suppose existence of any features that are not explicitly supported (that what you are actually doing)! Where did you read that cursors are comparable? 🧐 Actually, they are not and you should use them as arguments to appropriate APIs only (as described in the documentation). 😉 Even more: in your particular case you don't need the last cursor. It's clear what you are trying to optimize, but (as I mentioned) it's impossible.
Hope this clarifies matter.
Hi @Здравко thank you for your reply,
Following th API Docs here :
A way to quickly get a cursor for the folder's state. Unlike list_folder, list_folder/get_latest_cursor doesn't return any entries. This endpoint is for app which only needs to know about new files and modifications and doesn't need to know about files that already exist in Dropbox
Now I'm a bit confused, in which way this cursor, or in general this endpoint, is working in order to retrieve updated information about new files and modification?
Thanks
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!