Fix Zotero.Attachments.importSnapshotFromFile

This commit is contained in:
Simon Kornblith 2015-06-04 20:22:54 -04:00
parent d476626c74
commit 582799e428

View File

@ -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);