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;