mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Attachment directory wasn't removed when deleting attachment
This commit is contained in:
parent
f9c07bb8e0
commit
a1cd958cd6
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue