www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a2ce69aee1605a13d1b15b89f10be76c7a0da21d
parent b0e5b1763a77b75a85af074722d780eb52a746f7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 27 Apr 2009 01:45:15 +0000

Fix error when a linked file appears twice in an export (e.g., in two subcollections)


Diffstat:
Mchrome/content/zotero/xpcom/translate.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js @@ -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;