For non-Google Doc files in a Google Drive, I can detect a change by comparing the File.md5Checksum with a previous value.
md5Checksum is null for Google Doc files:
application/vnd.google-apps.*
Is there any method besides File.modifiedDate?
Admittedly, it's sort of a corner case: if a doc goes from state A => B => A, then the modifiedDate will change but not the content.
File.modifiedDate is definitely a good solution but you should consider using the Changes feed to detect changes to file:
https://developers.google.com/drive/manage-changes
Once you retrieve the Changes feed, you can filter the entries using the fileId field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With