Google Drive File etag [英] Google Drive File etag
本文介绍了Google Drive File etag的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文件资源的etag是如何工作的?它看起来即使没有对文件进行任何更改也会发生变化。
有没有办法获得校验和或仅在更新文件时才更改?
感谢您的帮助!
解决方案
文件的Etag也当文件的元数据发生变化时更改。如果您只想监视文件内容的更改,则可以使用 md5Checksum
字段替代:
https://developers.google.com/drive/v2/reference/files#resource
How does the etag of a File Resource works? It looks like it's changing even if no change is made on the file.
Is there a way to get a checksum or something that change only when the file is updated?
Thanks for your help!
解决方案
The Etag of a file also changes when the file's metadata changes. If you want to only monitor changes to the file's content, you can use the md5Checksum
field instead:
https://developers.google.com/drive/v2/reference/files#resource
这篇关于Google Drive File etag的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文