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:
parent
4e9f05a183
commit
8a5e17610c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user