glib.dir
Module for [Dir] class
class Dir
Types 1
classDir : gobject.boxed.Boxed
An opaque structure representing an opened directory.
Methods
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.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.void rewind()Resets the given directory. The next call to [glib.dir.Dir.readName] will return the first entry again.string makeTmp(string tmpl = null)Creates a subdirectory in the preferred directory for temporary files (as returned by [glib.global.getTmpDir]).