From a1cd958cd6032bf0d159e4940041a7cc49a621b3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 1 Sep 2008 03:59:55 +0000 Subject: [PATCH] Attachment directory wasn't removed when deleting attachment --- chrome/content/zotero/xpcom/data/item.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index a5df127cd..19aef341b 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3142,8 +3142,7 @@ Zotero.Item.prototype.erase = function(deleteChildren) { break; default: try { - var file = Zotero.getStorageDirectory(); - file.append(this.id); + var file = Zotero.Attachments.getStorageDirectory(this.id); if (file.exists()) { file.remove(true); }