1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-23 06:35:46 +01:00

Only normalize() paths that exist.

This commit is contained in:
Kris Maglione
2008-12-16 16:50:40 -05:00
parent cef689bc6e
commit 83b30172f8

View File

@@ -119,11 +119,8 @@ function IO() //{{{
{ {
let path = ioManager.getFile(head); let path = ioManager.getFile(head);
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators
try if (path.exists())
{
path.normalize(); path.normalize();
}
catch(e) {}
return path; return path;
} }