mirror of https://github.com/sbt/sbt.git
Fix '/' operator in Paths
This commit is contained in:
parent
4392ba6b8d
commit
b4c5168d1f
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue