diff --git a/file/lib/main.js b/file/lib/main.js index 0afe0f0..0ce8f25 100644 --- a/file/lib/main.js +++ b/file/lib/main.js @@ -133,6 +133,12 @@ exports.path.abspath = function (to) { case "/": from = ""; break default : from = process.cwd(); break } + + if(to.charAt(0)+to.charAt(1) == './') + { + from = ""; to = to.substring(2); + } + return path.join(from, to); }