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