diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js index 15aa35bab..93ceb686a 100644 --- 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;