Dir

class Dir(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

An opaque structure representing an opened directory.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<Dir, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibDirPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun close()

Closes the directory immediately and decrements the reference count.

Link copied to clipboard

Retrieves the name of another entry in the directory, or null. The order of entries returned from this function is not defined, and may vary by file system or other operating-system dependent factors.

Link copied to clipboard
fun ref(): Dir

Increment the reference count of dir.

Link copied to clipboard
fun rewind()

Resets the given directory. The next call to g_dir_read_name() will return the first entry again.

Link copied to clipboard
fun unref()

Decrements the reference count of dir.