If mod time doesn't match but hash does, update file mod time to match synced time, since otherwise Zotero will compute the hash each time

This commit is contained in:
Dan Stillman 2010-02-12 09:17:09 +00:00
parent 4e9f05a183
commit 8a5e17610c

View File

@ -528,7 +528,8 @@ Zotero.Sync.Storage = new function () {
var fileHash = item.attachmentHash;
if (attachmentData[item.id].hash && attachmentData[item.id].hash == fileHash) {
Zotero.debug("Mod time didn't match (" + fmtime + "!=" + mtime + ") "
+ "but hash did for " + file.leafName + " -- ignoring");
+ "but hash did for " + file.leafName + " -- updating file mod time");
file.lastModifiedTime = attachmentData[item.id].mtime;
continue;
}