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(): 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 isValid: Boolean

  41. val jfile: JFile

  42. def lastModified: Long

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

  44. def length: Long

  45. def name: String

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

    Definition Classes
    AnyRef
  47. def normalize: Path

  48. def notExists: Boolean

  49. final def notify(): Unit

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

    Definition Classes
    AnyRef
  51. def parent: Directory

    returns

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

  52. def parents: List[Directory]

  53. def path: String

  54. def relativize(other: Path): Path

  55. def resolve(other: Path): Path

  56. def root: Option[Path]

  57. def segments: List[String]

  58. val separator: Char

  59. val separatorStr: String

  60. def startsWith(other: Path): Boolean

  61. def stripExtension: String

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

    Definition Classes
    AnyRef
  63. def toAbsolute: Path

  64. def toAbsoluteWithRoot(root: Path): Path

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

  65. def toCanonical: Path

  66. def toDirectory: Directory

  67. def toFile: File

  68. def toString(): String

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

  70. def toURL: URL

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

  72. def truncate(): Boolean

  73. final def wait(): Unit

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

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

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

    Equivalent to walkFilter(_ => false).

  77. 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