Attachment directory wasn't removed when deleting attachment

This commit is contained in:
Dan Stillman 2008-09-01 03:59:55 +00:00
parent f9c07bb8e0
commit a1cd958cd6

View File

@ -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);
}