class DirectoryEntries
source · line 15public
public class DirectoryEntries private constructor(private val path: Path) : Iterable<DirectoryEntry>, Iterator<DirectoryEntry>, Closeable
- Supertype
Iterable<DirectoryEntry> - Supertype
Iterator<DirectoryEntry> - Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
An owned, single-pass directory cursor implementing both Iterable and Iterator. Close it when finished or when abandoning enumeration.
property isClosed
source · line 23public
public val isClosed: Boolean
get: public read-only
Whether the directory handle has been closed.
getter get
source · line 23public
get(): Boolean
function iterator
source · line 51public
public override operator fun iterator(): Iterator<DirectoryEntry>
- Overrides
iterator
Returns this same single-pass cursor; it does not restart directory enumeration.
function next
source · line 56public
public override fun next(): DirectoryEntry?
- Overrides
next
Returns the next entry, or None when enumeration is exhausted.
function close
source · line 98public
public override fun close(): Unit
- Overrides
close
Closes the directory enumeration handle.