Class/Object

org.argus.jawa.core.io

Path

Related Docs: object Path | package io

Permalink

class Path extends AnyRef

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

Note: This library is considered experimental and should not be used unless you know what you are doing.

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

Value Members

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

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

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

    Permalink
  4. def /(child: Directory): Directory

    Permalink
  5. def /(child: Path): Path

    Permalink

    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.

  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def addExtension(ext: String): Path

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def canRead: Boolean

    Permalink
  10. def canWrite: Boolean

    Permalink
  11. def changeExtension(ext: String): Path

    Permalink
  12. def clone(): AnyRef

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

    Permalink
  14. def createFile(failIfExists: Boolean = false): File

    Permalink
  15. def delete(): Boolean

    Permalink
  16. def deleteRecursively(): Boolean

    Permalink

    Deletes the path recursively.

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

  17. def endsWith(other: Path): Boolean

    Permalink
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    Path → AnyRef → Any
  20. def exists: Boolean

    Permalink
  21. def extension: String

    Permalink
  22. def finalize(): Unit

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

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

    Permalink
  25. def hashCode(): Int

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

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

    Permalink
  28. def isAbsolute: Boolean

    Permalink
  29. def isDirectory: Boolean

    Permalink
  30. def isEmpty: Boolean

    Permalink
  31. def isFile: Boolean

    Permalink
  32. def isFresher(other: Path): Boolean

    Permalink
  33. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  34. def isSame(other: Path): Boolean

    Permalink
  35. val jfile: JFile

    Permalink
  36. def lastModified: Long

    Permalink
  37. def length: Long

    Permalink
  38. def name: String

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

    Permalink
    Definition Classes
    AnyRef
  40. def normalize: Path

    Permalink
  41. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  43. def parent: Directory

    Permalink

    returns

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

  44. def parents: List[Directory]

    Permalink
  45. def path: String

    Permalink
  46. def relativize(other: Path): Path

    Permalink
  47. def resolve(other: Path): Path

    Permalink
  48. def segments: List[String]

    Permalink
  49. val separator: Char

    Permalink
  50. val separatorStr: String

    Permalink
  51. def stripExtension: String

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

    Permalink
    Definition Classes
    AnyRef
  53. def toAbsolute: Path

    Permalink
  54. def toAbsoluteWithRoot(root: Path): Path

    Permalink

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

  55. def toCanonical: Path

    Permalink
  56. def toDirectory: Directory

    Permalink
  57. def toFile: File

    Permalink
  58. def toString(): String

    Permalink
    Definition Classes
    Path → AnyRef → Any
  59. def toURI: URI

    Permalink
  60. def toURL: URL

    Permalink
  61. def truncate(): Boolean

    Permalink
  62. final def wait(): Unit

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

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

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

    Permalink

    Equivalent to walkFilter(_ => false).

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

    Permalink

    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

Ungrouped