Hi,
We’re building a feature that allows offline syncing of all content under a specified folder from Google Drive to our application periodically, and we need to way to determine whether a file has changed and requires re-downloading.
We originally planed to use the file’s md5Checksum or sha256Checksum from the files.list API, but realized that checksums are not available for Google Drive native files.
We are now exploring other options to detect file change and are considering:
- Store and compare the file’s
modifiedTimefrom the files.list API. - Store and compare the file’s
revision.idfrom the revisions resource. - Use changes.list API → I believe this would return all changes relevant to the user or a particular drive. We only care about changes made under a particular folder and it seems like there is no good way to filter by folder ID easily.
Are 1 and 2 viable options to reliably detect file change across X period of time? Are modifiedTime and revision.id always updated together?
Thanks in advance!