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:
@@ -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; } };
|
||||
|
||||
Reference in New Issue
Block a user