commit e2dc73c75ba34db83feaeab10b8f1bb6280a960b parent 6dbcc678c89f4cb33e478c3a174211f4d6239034 Author: Dan Stillman <dstillman@zotero.org> Date: Sun, 15 Mar 2009 17:39:09 +0000 Don't copy item storage folder to orphaned-files every time the file changes via storage sync Diffstat:
| M | 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 @@ -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;