1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 09:44:13 +01:00

Refactor IO.PATH_SEP.

This commit is contained in:
Doug Kearns
2009-04-04 20:13:02 +11:00
parent 7b367d505d
commit 7dc432d147

View File

@@ -1101,10 +1101,9 @@ lookup:
}; //}}} }; //}}}
IO.PATH_SEP = (function () { IO.PATH_SEP = (function () {
let file = services.create("file"); let f = services.get("directory").get("CurProcD", Ci.nsIFile);
let pathsep = "/"; f.append("foo");
try { file.initWithPath("/"); } catch(e) { pathsep = "\\"; } return f.path.substr(f.parent.path.length, 1);
return pathsep;
})(); })();
/** /**