1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 11:15: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);
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators
try
{
if (path.exists())
path.normalize();
}
catch(e) {}
return path;
}