diff --git a/common/content/io.js b/common/content/io.js index b02e1f8b..8cf02c2f 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -1101,10 +1101,9 @@ lookup: }; //}}} IO.PATH_SEP = (function () { - let file = services.create("file"); - let pathsep = "/"; - try { file.initWithPath("/"); } catch(e) { pathsep = "\\"; } - return pathsep; + let f = services.get("directory").get("CurProcD", Ci.nsIFile); + f.append("foo"); + return f.path.substr(f.parent.path.length, 1); })(); /**