From ce9b915de160fb32b2fd8ac916169f9d35ab6e9e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Sep 2009 23:46:02 +0000 Subject: [PATCH] Debugging info for a user's problem --- chrome/content/zotero/xpcom/storage.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 229f95aeb..e0ba1a8ae 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -454,6 +454,13 @@ Zotero.Sync.Storage = new function () { } // If file hash matches stored hash, only the mod time changed, so skip + var f = item.getFile(); + if (f) { + Zotero.debug(f.path); + } + else { + Zotero.debug("File missing before getting hash"); + } var fileHash = item.attachmentHash; if (attachmentData[item.id].hash && attachmentData[item.id].hash == fileHash) { Zotero.debug("Mod time didn't match but hash did for " + file.leafName + " -- ignoring");