Dotty Documentation

0.12.0-bin-SNAPSHOT

class Directory
extends Path

An abstraction for directories.

[-] Constructors

Directory ( jpath: JPath )

[-] Members

[+] private val jpath : JPath
[+] def deepFiles : Iterator [ File ]
[+] def deepList ( depth: Int ) : Iterator [ Path ]

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

[+] def deepList$default$1 : Int

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

[+] def dirs : Iterator [ Directory ]
[+] def files : Iterator [ File ]
[+] def list : Iterator [ Path ]

An iterator over the contents of this directory.

[+] override def normalize : Directory
[+] override def toAbsolute : Directory
[+] override def toDirectory : Directory
[+] override def toFile : File
[+] override def walkFilter ( cond: Path => Boolean ) : Iterator [ Path ]

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