glib.dir

Module for [Dir] class

class Dir

Types 1

An opaque structure representing an opened directory.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Dir self() nothrowReturns `this`, for use in `with` statements.
glib.dir.Dir open(string path, uint flags) staticOpens 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.
string readName() nothrowRetrieves 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.
void rewind() nothrowResets the given directory. The next call to [glib.dir.Dir.readName] will return the first entry again.
string makeTmp(string tmpl = null) staticCreates a subdirectory in the preferred directory for temporary files (as returned by [glib.global.getTmpDir]).
Constructors
this(void * ptr, Flag!"Take" take)