From 83b30172f86cb288ba5a2dda052621557279dd75 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 16 Dec 2008 16:50:40 -0500 Subject: [PATCH] Only normalize() paths that exist. --- common/content/io.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/content/io.js b/common/content/io.js index 236ff305..6ad268bc 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -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; }