Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Bhupesh K.
9 years agoNew member | Level 1
Migration from Sync API v1 to Core API v2
Hi
I am migrating my existing code from Sync API v1 to Core API v2. There is one issue I am facing. There was a call in Sync API v2 to check if the cached file is latest or not:
DbxFile mFile...
Greg-DB
Dropbox Community Moderator
9 years agoThe API v2 SDKs don't provide caching layers for you like the Sync SDKs did, but if you are caching file content locally like that, the rev value you mentioned can be used to keep track of changes. That is, when you store a copy of a file locally, store the rev value for that copy as well. When you see the remote rev value as different from the local one, you know that the file changed and you should download the new version.
For example, when using listFolderContinue, you'll get a list of Metadata entries, where you can see if there's a new version of a file you cached.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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, Facebook or Instagram.
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!