Fix Windows file export error in Zotero Standalone
This commit is contained in:
parent
e809144162
commit
12b72581ab
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user