mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix error when a linked file appears twice in an export (e.g., in two subcollections)
This commit is contained in:
parent
b0e5b1763a
commit
a2ce69aee1
1 changed files with 1 additions and 1 deletions
|
|
@ -2066,9 +2066,9 @@ Zotero.Translate.prototype._exportGetAttachment = function(attachment) {
|
|||
createInstance(Components.interfaces.nsILocalFile);
|
||||
directory.initWithFile(this._exportFileDirectory);
|
||||
directory.append(attachmentArray.itemID);
|
||||
directory.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0700);
|
||||
// copy file
|
||||
try {
|
||||
directory.create(Components.interfaces.nsIFile.DIRECTORY_TYPE, 0700);
|
||||
file.copyTo(directory, attachmentArray.filename);
|
||||
} catch(e) {
|
||||
attachmentArray.path = undefined;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue