scala.tools.nsc.io

Path

class Path extends AnyRef

The Path constructor is private so we can enforce some semantics regarding how a Path might relate to the world.

Source
Path.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Path
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def /(child: File): File

  5. def /(child: Directory): Directory

  6. def /(child: Path): Path

    Creates a new Path with the specified path appended.

    Creates a new Path with the specified path appended. Assumes the type of the new component implies the type of the result.

  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. def addExtension(ext: String): Path

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def canRead: Boolean

  12. def canWrite: Boolean

  13. def changeExtension(ext: String): Path

  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def createDirectory(force: Boolean = true, failIfExists: Boolean = false): Directory

  16. def createFile(failIfExists: Boolean = false): File

  17. def delete(): Boolean

  18. def deleteIfExists(): Boolean

  19. def deleteRecursively(): Boolean

    Deletes the path recursively.

    Deletes the path recursively. Returns false on failure. Use with caution!

  20. def endsWith(other: Path): Boolean

  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(other: Any): Boolean

    Definition Classes
    Path → AnyRef → Any
  23. def exists: Boolean

  24. def extension: String

  25. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  27. def hasExtension(ext: String, exts: String*): Boolean

  28. def hashCode(): Int

    Definition Classes
    Path → AnyRef → Any
  29. def ifDirectory[T](f: (Directory) ⇒ T): Option[T]

  30. def ifFile[T](f: (File) ⇒ T): Option[T]

  31. def isAbsolute: Boolean

  32. def isDirectory: Boolean

  33. def isEmpty: Boolean

  34. def isFile: Boolean

  35. def isFresher(other: Path): Boolean

  36. def isHidden: Boolean

  37. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  38. def isRootPath: Boolean

  39. def isSame(other: Path): Boolean

  40. def isSymlink: Boolean

  41. def isValid: Boolean

  42. val jfile: JFile

  43. def lastModified: Long

  44. def lastModified_=(time: Long): Boolean

  45. def length: Long

  46. def name: String

  47. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  48. def normalize: Path

  49. def notExists: Boolean

  50. final def notify(): Unit

    Definition Classes
    AnyRef
  51. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  52. def parent: Directory

    returns

    The path of the parent directory, or root if path is already root

  53. def parents: List[Directory]

  54. def path: String

  55. def relativize(other: Path): Path

  56. def resolve(other: Path): Path

  57. def root: Option[Path]

  58. def segments: List[String]

  59. val separator: Char

  60. val separatorStr: String

  61. def startsWith(other: Path): Boolean

  62. def stripExtension: String

  63. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  64. def toAbsolute: Path

  65. def toAbsoluteWithRoot(root: Path): Path

    If this path is absolute, returns it: otherwise, returns an absolute path made up of root / this.

  66. def toCanonical: Path

  67. def toDirectory: Directory

  68. def toFile: File

  69. def toString(): String

    Definition Classes
    Path → AnyRef → Any
  70. def toURI: URI

  71. def toURL: URL

  72. def touch(modTime: Long = System.currentTimeMillis): AnyVal

  73. def truncate(): Boolean

  74. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  77. def walk: Iterator[Path]

    Equivalent to walkFilter(_ => false).

  78. def walkFilter(cond: (Path) ⇒ Boolean): Iterator[Path]

    If this path is a container, recursively iterate over its contents.

    If this path is a container, recursively iterate over its contents. The supplied condition is a filter which is applied to each element, with that branch of the tree being closed off if it is true. So for example if the condition is true for some subdirectory, nothing under that directory will be in the Iterator; but otherwise each file and subdirectory underneath it will appear.

Inherited from AnyRef

Inherited from Any