mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 11:01:08 +02:00
filter and flatMap on Path
This commit is contained in:
@@ -269,6 +269,8 @@ sealed abstract class PathFinder extends NotNull
|
||||
addTo(pathSet)
|
||||
wrap.Wrappers.readOnly(pathSet)
|
||||
}
|
||||
final def filter(f: Path => Boolean): PathFinder = Path.lazyPathFinder(get.filter(f))
|
||||
final def flatMap(f: Path => PathFinder): PathFinder = Path.lazyPathFinder(get.flatMap(p => f(p).get))
|
||||
final def getFiles: scala.collection.Set[File] = Set( get.map(_.asFile).toSeq : _*)
|
||||
final def getPaths: scala.collection.Set[String] = Set( get.map(_.absolutePath).toSeq : _*)
|
||||
private[sbt] def addTo(pathSet: Set[Path])
|
||||
|
||||
Reference in New Issue
Block a user