PathFinderDefaults

sbt.io.PathFinderDefaults
sealed trait PathFinderDefaults extends Combinator

Attributes

Graph
Supertypes
trait Combinator
class Object
trait Matchable
class Any
Known subtypes
class PathFinder
Self type

Members list

Value members

Concrete methods

final def *(filter: FileFilter): PathFinder

Alias of glob

Alias of glob

Attributes

final def **(filter: FileFilter): PathFinder

Alias of globRecursive.

Alias of globRecursive.

Attributes

override def +++(paths: PathFinder): PathFinder

The union of the paths found by this PathFinder with the paths found by 'paths'.

The union of the paths found by this PathFinder with the paths found by 'paths'.

Attributes

Definition Classes
override def ---(excludePaths: PathFinder): PathFinder

Excludes all paths from excludePaths from the paths selected by this PathFinder.

Excludes all paths from excludePaths from the paths selected by this PathFinder.

Attributes

Definition Classes
def /(literal: String): PathFinder

Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

Attributes

final def \(literal: String): PathFinder

Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

Constructs a new finder that selects all paths with name literal that are immediate children of paths selected by this finder.

Attributes

final def absString(): String

Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.

Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.

Attributes

override def descendantsExcept(include: FileFilter, intermediateExclude: FileFilter): PathFinder

Selects all descendant paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude.

Selects all descendant paths with a name that matches include and do not have an intermediate path with a name that matches intermediateExclude.

Typical usage is descendantsExcept("*.jar", ".svn")

Attributes

Definition Classes
override def distinct(): PathFinder

Create a PathFinder from this one where each path has a unique name. A single path is arbitrarily selected from the set of paths with the same name.

Create a PathFinder from this one where each path has a unique name. A single path is arbitrarily selected from the set of paths with the same name.

Attributes

Definition Classes
final override def filter(f: File => Boolean): PathFinder

Only keeps paths for which f returns true. It is non-strict, so it is not evaluated until the returned finder is evaluated.

Only keeps paths for which f returns true. It is non-strict, so it is not evaluated until the returned finder is evaluated.

Attributes

Definition Classes
final override def flatMap(f: File => PathFinder): PathFinder

Non-strict flatMap: no evaluation occurs until the returned finder is evaluated.

Non-strict flatMap: no evaluation occurs until the returned finder is evaluated.

Attributes

Definition Classes
final override def getPaths(): Seq[String]

Evaluates this finder and converts the results to a distinct sequence of absolute path strings.

Evaluates this finder and converts the results to a distinct sequence of absolute path strings.

Attributes

Definition Classes
final override def getURLs(): Array[URL]

Evaluates this finder and converts the results to an Array of URLs.

Evaluates this finder and converts the results to an Array of URLs.

Attributes

Definition Classes
def glob(filter: FileFilter): PathFinder

Constructs a new finder that selects all paths with a name that matches filter and are immediate children of paths selected by this finder.

Constructs a new finder that selects all paths with a name that matches filter and are immediate children of paths selected by this finder.

Value parameters

filter

only include files that this filter accepts

Attributes

Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.

Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.

Value parameters

filter

only include files that this filter accepts

Attributes

def globRecursive(filter: FileFilter, walker: (File, FileFilter, Set[File]) => Unit): PathFinder

Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.

Constructs a new finder that selects all paths with a name that matches filter and are descendants of paths selected by this finder.

Value parameters

filter

only include files that this filter accepts

walker

use this walker to traverse the file system

Attributes

def pair[T](mapper: File => Option[T], errorIfNone: Boolean): Seq[(File, T)]

Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result. If the result is empty (None) and errorIfNone is true, an exception is thrown. If errorIfNone is false, the path is dropped from the returned Traversable.

Applies mapper to each path selected by this PathFinder and returns the path paired with the non-empty result. If the result is empty (None) and errorIfNone is true, an exception is thrown. If errorIfNone is false, the path is dropped from the returned Traversable.

Attributes