Attachment directory wasn't removed when deleting attachment

This commit is contained in:
Dan Stillman 2008-09-01 03:59:55 +00:00
parent 4ff983661a
commit 19c3ddeeff

View File

@ -3142,8 +3142,7 @@ Zotero.Item.prototype.erase = function(deleteChildren) {
break; break;
default: default:
try { try {
var file = Zotero.getStorageDirectory(); var file = Zotero.Attachments.getStorageDirectory(this.id);
file.append(this.id);
if (file.exists()) { if (file.exists()) {
file.remove(true); file.remove(true);
} }