1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 07:32:25 +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 () {
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);
})();
/**