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…
Reference in a new issue