Fix '/' operator in Paths

This commit is contained in:
Mark Harrah 2010-01-20 18:16:31 -05:00
parent 4392ba6b8d
commit b4c5168d1f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ trait PathBase extends NotNull
final class Paths(val files: Set[File]) extends PathBase
{
def \(subPath: String) = /(subPath)
def /(subPath: String): Set[File] = files.flatMap(FileUtilities.listFiles)
def /(subPath: String): Set[File] = files.flatMap { file => val f = file / subPath; if(f.exists) Seq(f) else Seq() }
}
final class Path(val asFile: File) extends PathBase
{