mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:52:30 +02:00
Only normalize() paths that exist.
This commit is contained in:
1 parent
cef689bc6e
commit
83b30172f8
1 file changed
+1
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user