commit 12b72581abc0e5b778e16a461f42f9352cd9d741
parent e80914416280245a10fc720c0b0f2154c21cdc30
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 13 Sep 2011 16:41:33 +0000
Fix Windows file export error in Zotero Standalone
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js
@@ -646,7 +646,7 @@ Zotero.Translate.ItemGetter.prototype = {
var targetFile = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
targetFile.initWithFile(exportDir);
- targetFile.appendRelativePath(attachPath);
+ for(var dir in attachPath.split("/")) targetFile.append(dir);
// First, check that we have not gone lower than exportDir in the hierarchy
var parent = targetFile, inExportFileDirectory;