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 = dbxFs.open(testPath);
boolean latest;
latest = mFile.getSyncStatus().isLatest;
Then on the basis of this ‘latest’ variable, I performed certain tasks.
In API v2, I couldn’t find any DbxFile class. The only closest thing I could find is getRev() of FileMetadata.
How can I use getRev() to find if I have the latest file? Is there any other way to do so?
Please help.