1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 07:04:14 +01:00

Only normalize() files that exist in File#joinPaths.

--HG--
extra : rebase_source : 95956866421e607ed9232d905e2ceb462400e09e
This commit is contained in:
Kris Maglione
2010-09-23 04:24:30 -04:00
parent 4897e5cfad
commit a66ee5a8da
2 changed files with 4 additions and 3 deletions

View File

@@ -547,7 +547,8 @@ const File = Class("File", {
try {
// FIXME: should only expand env vars and normalise path separators
path.appendRelativePath(this.expandPath(tail, true));
path.normalize();
if (path.exists())
path.normalize();
}
catch (e) {
return { exists: function () false, __noSuchMethod__: function () { throw e; } };