Fix Zotero.Attachments.importSnapshotFromFile
This commit is contained in:
parent
d476626c74
commit
582799e428
|
@ -187,6 +187,7 @@ Zotero.Attachments = new function(){
|
|||
// translate.js, which sets the metadata fields itself
|
||||
itemID = yield attachmentItem.save();
|
||||
|
||||
var storageDir = Zotero.getStorageDirectory();
|
||||
destDir = this.getStorageDirectory(attachmentItem);
|
||||
yield _moveOrphanedDirectory(destDir);
|
||||
file.parent.copyTo(storageDir, destDir.leafName);
|
||||
|
|
Loading…
Reference in New Issue
Block a user