Packages

o

sbt.nio.file

RecursiveGlob

object RecursiveGlob extends SingleComponentMatcher with RelativeGlob with Product with Serializable

A RelativeGlob that matches any path. Can be combined with other Glob instances to build recursive queries:

val scalaSources = Glob("/foo/bar") / RecursiveGlob / "*.scala"
scalaSources.matches(Paths.get("/foo/bar/Foo.scala")) // true
scalaSources.matches(Paths.get("/foo/bar/baz/fizz/buzz/Bar.scala")) // true
Linear Supertypes
Serializable, Serializable, Product, Equals, SingleComponentMatcher, Matcher, RelativeGlob, Glob, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RecursiveGlob
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SingleComponentMatcher
  7. Matcher
  8. RelativeGlob
  9. Glob
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /(regex: Regex): RelativeGlob

    Appends a relative glob specified by a regex pattern to an existing Glob.

    Appends a relative glob specified by a regex pattern to an existing Glob. For example:

    val glob = Glob("foo/bar")
    val scalaSources = glob / "^[^.].*\\.scala".r
    scalaSources.matches(Paths.get("foo/bar/Foo.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/.hidden.scala")) // false

    Note that it is not possible to specify a recursive glob this way because ** is not valid in regex. To make a recursive glob, combine with RecursiveGlob:

    val scalaSources = Glob("foo/bar") / ** / "^[^.].*\\.scala".r
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/Foo.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/.hidden.scala")) // false

    On Windows, \ will be treated as a regex escape character but / will be treated as a path separator.

    regex

    the pattern to apply

    returns

    a Glob with the new RelativeGlob appended to the query.

    Definition Classes
    RelativeGlob
  4. def /(relativeGlob: RelativeGlob): RelativeGlob

    Appends an additional RelativeGlob to this RelativeGlob:

    Appends an additional RelativeGlob to this RelativeGlob:

    val glob = Glob("foo/bar")
    val scalaSources = glob / ** / "*.scala"
    scalaSources.matches(Paths.get("foo/bar/Foo.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/Bar.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/Baz.java")) // false
    relativeGlob

    the additional query string to parse and append

    returns

    a Glob with the new RelativeGlob appended to the query.

    Definition Classes
    RelativeGlob
  5. def /(relativeGlob: String): RelativeGlob

    Appends additional components to this RelativeGlob:

    Appends additional components to this RelativeGlob:

    val glob = Glob("foo/bar")
    val scalaSources = glob / "**<code>/</code>*.scala"
    scalaSources.matches(Paths.get("foo/bar/Foo.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/Bar.scala")) // true
    scalaSources.matches(Paths.get("foo/bar/baz/fizz/buzz/Baz.java")) // false
    relativeGlob

    the additional query string to parse and append

    returns

    a Glob with the new RelativeGlob appended to the query.

    Definition Classes
    RelativeGlob
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def matches(path: Path): Boolean

    Indicates whether a path matches the pattern specified by this Glob.

    Indicates whether a path matches the pattern specified by this Glob.

    path

    the path to match

    returns

    true it the path matches.

    Definition Classes
    RecursiveGlobGlob
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    SingleComponentMatcher → AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SingleComponentMatcher

Inherited from Matcher

Inherited from RelativeGlob

Inherited from Glob

Inherited from AnyRef

Inherited from Any

Ungrouped