Search code examples
androidcomparisondropboxrevision

How to compare Dropbox revisions


In my application's dropbox integration, I call metadata for a file. Inside response, I get the field rev which states the revision of file. If I modify my file, the revision value updates - which is normal.

The confusion arises when I need to compare between two revisions in order to synchronize my file. How do I know which revision value is the latest/recent one? Is there any logic behind the building of dropbox revision number? Should I take it as hex value and perform the comparison?

//sample revision values
44de050448f6
44e2050448f6
44e5050448f6

Solution

  • If what you're trying to do is figure out the order of the revisions, you could call /revisions and get the list that way.