We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Oliver C.
11 years agoNew member | Level 1
Does the 'rev' field in the metadata for a file change if the file is moved or renamed?
I'm using the Webhooks API (and the core API) in my application. I need to determine if a file has been deleted from Dropbox or just renamed/moved. The /delta endpoint will only tell you when a path ...
Greg-DB
Dropbox Community Moderator
11 years agoYou should not use the rev to track changes to files across moves/renames, and in fact the rev value is always expected to change when a file is moved or renamed. Be careful when comparing rev values by eye though, as subsequent values may differ only very subtly, e.g., by changing a single character slightly.
Anyway, API v1 unfortunately doesn't have a good way to track moves/renames like this. The other techniques one might try are not ideal, as you mentioned.
API v2 will, e.g., by offering IDs for files, but that's currently just a preview.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!