mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix Zotero.Attachments.importSnapshotFromFile
This commit is contained in:
parent
d476626c74
commit
582799e428
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue