Dir.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.

Parameters

paththe path to the directory you are interested in. On Unix in the on-disk encoding. On Windows in UTF-8
flagsCurrently must be set to 0. Reserved for future use.

Returns

a newly allocated #GDir on success, null on failure.

If non-null, you must free the result with [glib.dir.Dir.close] when you are finished with it.

Throws

[ErrorWrap]