Class/Object

org.argus.jawa.core.io

Directory

Related Docs: object Directory | package io

Permalink

class Directory extends Path

An abstraction for directories.

Since

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

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

Instance Constructors

  1. new Directory(jfile: JFile)

    Permalink

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
    Definition Classes
    Path
  4. def /(child: Directory): Directory

    Permalink
    Definition Classes
    Path
  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.

    Definition Classes
    Path
  6. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Path
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def canRead: Boolean

    Permalink
    Definition Classes
    Path
  10. def canWrite: Boolean

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

    Permalink
    Definition Classes
    Path
  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
    Definition Classes
    Path
  14. def createFile(failIfExists: Boolean = false): File

    Permalink
    Definition Classes
    Path
  15. def deepFiles: Iterator[File]

    Permalink
  16. def deepList(depth: Int = 1): Iterator[Path]

    Permalink

    If optional depth argument is not given, will recurse until it runs out of contents.

  17. def delete(): Boolean

    Permalink
    Definition Classes
    Path
  18. def deleteRecursively(): Boolean

    Permalink

    Deletes the path recursively.

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

    Definition Classes
    Path
  19. def dirs: Iterator[Directory]

    Permalink
  20. def endsWith(other: Path): Boolean

    Permalink
    Definition Classes
    Path
  21. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    Path
  24. def extension: String

    Permalink
    Definition Classes
    Path
  25. def files: Iterator[File]

    Permalink
  26. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Path
  29. def hashCode(): Int

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

    Permalink
    Definition Classes
    Path
  31. def ifFile[T](f: (File) ⇒ T): Option[T]

    Permalink
    Definition Classes
    Path
  32. def isAbsolute: Boolean

    Permalink
    Definition Classes
    Path
  33. def isDirectory: Boolean

    Permalink
    Definition Classes
    Path
  34. def isEmpty: Boolean

    Permalink
    Definition Classes
    Path
  35. def isFile: Boolean

    Permalink
    Definition Classes
    Path
  36. def isFresher(other: Path): Boolean

    Permalink
    Definition Classes
    Path
  37. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Path
  39. val jfile: JFile

    Permalink
    Definition Classes
    Path
  40. def lastModified: Long

    Permalink
    Definition Classes
    Path
  41. def length: Long

    Permalink
    Definition Classes
    Path
  42. def list: Iterator[Path]

    Permalink

    An iterator over the contents of this directory.

  43. def name: String

    Permalink
    Definition Classes
    Path
  44. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  45. def normalize: Directory

    Permalink
    Definition Classes
    DirectoryPath
  46. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  48. def parent: Directory

    Permalink

    returns

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

    Definition Classes
    Path
  49. def parents: List[Directory]

    Permalink
    Definition Classes
    Path
  50. def path: String

    Permalink
    Definition Classes
    Path
  51. def relativize(other: Path): Path

    Permalink
    Definition Classes
    Path
  52. def resolve(other: Path): Path

    Permalink
    Definition Classes
    Path
  53. def segments: List[String]

    Permalink
    Definition Classes
    Path
  54. val separator: Char

    Permalink
    Definition Classes
    Path
  55. val separatorStr: String

    Permalink
    Definition Classes
    Path
  56. def stripExtension: String

    Permalink
    Definition Classes
    Path
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. def toAbsolute: Directory

    Permalink
    Definition Classes
    DirectoryPath
  59. def toAbsoluteWithRoot(root: Path): Path

    Permalink

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

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

    Definition Classes
    Path
  60. def toCanonical: Path

    Permalink
    Definition Classes
    Path
  61. def toDirectory: Directory

    Permalink
    Definition Classes
    DirectoryPath
  62. def toFile: File

    Permalink
    Definition Classes
    DirectoryPath
  63. def toString(): String

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

    Permalink
    Definition Classes
    Path
  65. def toURL: URL

    Permalink
    Definition Classes
    Path
  66. def truncate(): Boolean

    Permalink
    Definition Classes
    Path
  67. final def wait(): Unit

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

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

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

    Permalink

    Equivalent to walkFilter(_ => false).

    Equivalent to walkFilter(_ => false).

    Definition Classes
    Path
  71. 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.

    Definition Classes
    DirectoryPath

Inherited from Path

Inherited from AnyRef

Inherited from Any

Ungrouped