Object

sbt.io

Path

Related Doc: package io

Permalink

object Path extends PathExtra

Linear Supertypes
PathExtra, PathLow, Mapper, Alternatives, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Path
  2. PathExtra
  3. PathLow
  4. Mapper
  5. Alternatives
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type FileMap = (File) ⇒ Option[File]

    Permalink
    Definition Classes
    Mapper
  2. type PathMap = (File) ⇒ Option[String]

    Permalink
    Definition Classes
    Mapper

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abs: FileMap

    Permalink

    Pairs a File with the absolute File obtained by calling getAbsoluteFile.

    Pairs a File with the absolute File obtained by calling getAbsoluteFile. Note that this usually means that relative files are resolved against the current working directory.

    Definition Classes
    Mapper
  5. def absolute(file: File): File

    Permalink
  6. def allSubpaths(base: File): Traversable[(File, String)]

    Permalink

    Selects all descendants of base directory and maps them to a path relative to base.

    Selects all descendants of base directory and maps them to a path relative to base. base itself is not included.

    Definition Classes
    Mapper
  7. implicit def alternative[A, B](f: (A) ⇒ Option[B]): Alternative[A, B]

    Permalink
    Definition Classes
    Alternatives
  8. final def alternatives[A, B](alts: Seq[(A) ⇒ Option[B]]): (A) ⇒ Option[B]

    Permalink
    Definition Classes
    Alternatives
  9. def apply(f: String): RichFile

    Permalink
  10. def apply(f: File): RichFile

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. val basic: PathMap

    Permalink

    A path mapper that pairs a File with the path returned by calling getPath on it.

    A path mapper that pairs a File with the path returned by calling getPath on it.

    Definition Classes
    Mapper
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def fail: (Any) ⇒ Nothing

    Permalink

    A mapper that throws an exception for any input.

    A mapper that throws an exception for any input. This is useful as the last mapper in a pipeline to ensure every input gets mapped.

    Definition Classes
    Mapper
  17. def fileProperty(name: String): File

    Permalink
  18. implicit def filesToFinder(cc: Traversable[File]): PathFinder

    Permalink
    Definition Classes
    PathExtra
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def flat(newDirectory: File): FileMap

    Permalink

    Constructs a File mapper that pairs a file with a file with the same name in newDirectory.

    Constructs a File mapper that pairs a file with a file with the same name in newDirectory. For example, if newDirectory is /a/b, then /r/s/t/d.txt will be paired with /a/b/d.txt

    Definition Classes
    Mapper
  21. val flat: PathMap

    Permalink

    A path mapper that pairs a File with its name.

    A path mapper that pairs a File with its name. For example, /x/y/z.txt gets paired with z.txt.

    Definition Classes
    Mapper
  22. def flatRebase(newBase: String): PathMap

    Permalink

    A path mapper that pairs a File with a path constructed from newBase and the file's name.

    A path mapper that pairs a File with a path constructed from newBase and the file's name. For example, if newBase = /new/a/, then /old/x/z.txt gets paired with /new/a/z.txt.

    Definition Classes
    Mapper
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def makeString(paths: Seq[File], sep: String): String

    Permalink
  27. def makeString(paths: Seq[File]): String

    Permalink
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def newerThan(a: File, b: File): Boolean

    Permalink
  30. def normalizeBase(base: String): String

    Permalink
    Definition Classes
    Mapper
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. def rebase(oldBase: File, newBase: File): FileMap

    Permalink

    Produces a File mapper that pairs a descendant of oldBase with a file in newBase that preserving the relative path of the original file against oldBase.

    Produces a File mapper that pairs a descendant of oldBase with a file in newBase that preserving the relative path of the original file against oldBase. For example, if oldBase is /old/x/ and newBase is /new/a/, /old/x/y/z.txt gets paired with /new/a/y/z.txt.

    Definition Classes
    Mapper
  34. def rebase(oldBases: Iterable[File], newBase: File, zero: FileMap = transparent): FileMap

    Permalink
    Definition Classes
    Mapper
  35. def rebase(oldBase: File, newBase: String): PathMap

    Permalink

    A path mapper that pairs a descendent of oldBase with newBase prepended to the path relative to oldBase.

    A path mapper that pairs a descendent of oldBase with newBase prepended to the path relative to oldBase. For example, if oldBase = /old/x/ and newBase = new/a/, then /old/x/y/z.txt gets paired with new/a/y/z.txt.

    Definition Classes
    Mapper
  36. def relativeTo(bases: Iterable[File], zero: PathMap = transparent): PathMap

    Permalink
    Definition Classes
    Mapper
  37. def relativeTo(base: File): PathMap

    Permalink

    A path mapper that pairs a File with its path relative to base.

    A path mapper that pairs a File with its path relative to base. If the File is not a descendant of base, it is not handled (None is returned by the mapper).

    Definition Classes
    Mapper
  38. def resolve(newDirectory: File): FileMap

    Permalink

    Returns a File mapper that resolves a relative File against newDirectory and pairs the original File with the resolved File.

    Returns a File mapper that resolves a relative File against newDirectory and pairs the original File with the resolved File. The mapper ignores absolute files.

    Definition Classes
    Mapper
  39. implicit def richFile(file: File): RichFile

    Permalink
    Definition Classes
    PathExtra
  40. def selectSubpaths(base: File, filter: FileFilter): Traversable[(File, String)]

    Permalink

    Selects descendants of base directory matching filter and maps them to a path relative to base.

    Selects descendants of base directory matching filter and maps them to a path relative to base. base itself is not included.

    Definition Classes
    Mapper
  41. val sep: Char

    Permalink

    The separator character of the platform.

  42. implicit def singleFileFinder(file: File): PathFinder

    Permalink
    Definition Classes
    PathLow
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  45. def toURLs(files: Seq[File]): Array[URL]

    Permalink
  46. def total[A, B](f: (A) ⇒ B): (A) ⇒ Some[B]

    Permalink

    A mapper that is defined on all inputs by the function f.

    A mapper that is defined on all inputs by the function f.

    Definition Classes
    Mapper
  47. def transparent: (Any) ⇒ Option[Nothing]

    Permalink

    A mapper that ignores all inputs.

    A mapper that ignores all inputs.

    Definition Classes
    Mapper
  48. def userHome: File

    Permalink
  49. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from PathExtra

Inherited from PathLow

Inherited from Mapper

Inherited from Alternatives

Inherited from AnyRef

Inherited from Any

Ungrouped