mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 15:02:30 +02:00
Refactor IO.PATH_SEP.
This commit is contained in:
1 parent
7b367d505d
commit
7dc432d147
1 file changed
+3
-4
@@ -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);
|
||||
})();
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user