Dir

An opaque structure representing an opened directory.

Members

Functions

readName
string readName()

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.

rewind
void rewind()

Resets the given directory. The next call to glib.dir.Dir.readName will return the first entry again.

Static functions

makeTmp
string makeTmp(string tmpl)

Creates a subdirectory in the preferred directory for temporary files (as returned by glib.global.getTmpDir).

open
glib.dir.Dir open(string path, uint flags)

Opens a directory for reading. The names of the files in the directory can then be retrieved using glib.dir.Dir.readName. Note that the ordering is not defined.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.