Attachment directory wasn't removed when deleting attachment
This commit is contained in:
parent
f9c07bb8e0
commit
a1cd958cd6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user