From e2dc73c75ba34db83feaeab10b8f1bb6280a960b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 15 Mar 2009 17:39:09 +0000 Subject: [PATCH] Don't copy item storage folder to orphaned-files every time the file changes via storage sync --- chrome/content/zotero/xpcom/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 1d73e221e..b76b4eef5 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -1049,7 +1049,10 @@ Zotero.Sync.Storage = new function () { return; } - var parentDir = Zotero.Attachments.createDirectoryForItem(item.id); + var parentDir = Zotero.Attachments.getStorageDirectory(item.id); + if (!parentDir.exists()) { + Zotero.Attachments.createDirectoryForItem(item.id); + } // Delete existing files var otherFiles = parentDir.directoryEntries;