diff --git a/util/io/Path.scala b/util/io/Path.scala index d7e494074..bfc7797b3 100644 --- a/util/io/Path.scala +++ b/util/io/Path.scala @@ -193,8 +193,14 @@ object Path extends Alternatives with Mapper basePath else { - val components = value.split("""[/\\]""") - (basePath /: components)( (path, component) => path / component ) + val f = new File(value) + if(f.isAbsolute) + fromFile(f) + else + { + val components = value.split("""[/\\]""") + (basePath /: components)( (path, component) => path / component ) + } } } def baseAncestor(path: Path): Option[Path] =