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: java.io.File)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def /(child: File): File
    Definition Classes
    Path
  4. def /(child: Directory): Directory
    Definition Classes
    Path
  5. 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.

    Definition Classes
    Path
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addExtension(ext: String): Path
    Definition Classes
    Path
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def canRead: Boolean
    Definition Classes
    Path
  10. def canWrite: Boolean
    Definition Classes
    Path
  11. def changeExtension(ext: String): Path
    Definition Classes
    Path
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. def createDirectory(force: Boolean = true, failIfExists: Boolean = false): Directory
    Definition Classes
    Path
  14. def createFile(failIfExists: Boolean = false): File
    Definition Classes
    Path
  15. def deepFiles: Iterator[File]
  16. def deepList(depth: Int = -1): Iterator[Path]

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

  17. def delete(): Boolean
    Definition Classes
    Path
  18. def deleteRecursively(): Boolean

    Deletes the path recursively.

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

    Definition Classes
    Path
  19. def dirs: Iterator[Directory]
  20. def endsWith(other: Path): Boolean
    Definition Classes
    Path
  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
    Definition Classes
    Path
  24. def extension: String
    Definition Classes
    Path
  25. def files: Iterator[File]
  26. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def hasExtension(ext: String, exts: String*): Boolean
    Definition Classes
    Path
  29. def hashCode(): Int
    Definition Classes
    Path → AnyRef → Any
  30. def ifDirectory[T](f: (Directory) ⇒ T): Option[T]
    Definition Classes
    Path
  31. def ifFile[T](f: (File) ⇒ T): Option[T]
    Definition Classes
    Path
  32. def isAbsolute: Boolean
    Definition Classes
    Path
  33. def isDirectory: Boolean
    Definition Classes
    Path
  34. def isEmpty: Boolean
    Definition Classes
    Path
  35. def isFile: Boolean
    Definition Classes
    Path
  36. def isFresher(other: Path): Boolean
    Definition Classes
    Path
  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def isSame(other: Path): Boolean
    Definition Classes
    Path
  39. val jfile: java.io.File
    Definition Classes
    Path
  40. def lastModified: Long
    Definition Classes
    Path
  41. def length: Long
    Definition Classes
    Path
  42. def list: Iterator[Path]

    An iterator over the contents of this directory.

  43. def name: String
    Definition Classes
    Path
  44. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  45. def normalize: Directory
    Definition Classes
    DirectoryPath
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. def parent: Directory

    returns

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

    Definition Classes
    Path
  49. def parents: List[Directory]
    Definition Classes
    Path
  50. def path: String
    Definition Classes
    Path
  51. def relativize(other: Path): Path
    Definition Classes
    Path
  52. def resolve(other: Path): Path
    Definition Classes
    Path
  53. def segments: List[String]
    Definition Classes
    Path
  54. val separator: Char
    Definition Classes
    Path
  55. val separatorStr: String
    Definition Classes
    Path
  56. def stripExtension: String
    Definition Classes
    Path
  57. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  58. def toAbsolute: Directory
    Definition Classes
    DirectoryPath
  59. def toAbsoluteWithRoot(root: Path): Path

    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
    Definition Classes
    Path
  61. def toDirectory: Directory
    Definition Classes
    DirectoryPath
  62. def toFile: File
    Definition Classes
    DirectoryPath
  63. def toString(): String
    Definition Classes
    Path → AnyRef → Any
  64. def toURI: URI
    Definition Classes
    Path
  65. def toURL: URL
    Definition Classes
    Path
  66. def truncate(): Boolean
    Definition Classes
    Path
  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  70. def walk: Iterator[Path]

    Equivalent to walkFilter(_ => true).

    Equivalent to walkFilter(_ => true).

    Definition Classes
    Path
  71. def walkFilter(cond: (Path) ⇒ Boolean): Iterator[Path]

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

    If this path is a directory, 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 false. So for example if the condition is false for some subdirectory, nothing under that directory will be in the Iterator. If it's true, all files for which the condition holds and are directly in that subdirectory are in the Iterator, and all sub-subdirectories are recursively evaluated

    Definition Classes
    DirectoryPath

Inherited from Path

Inherited from AnyRef

Inherited from Any

Ungrouped