Directory.open

Opens a directory for reading. The names of the files in the directory can then be retrieved using g_dir_read_name(). Note that the ordering is not defined.

class Directory
static
open
(
string path
,
uint flags
)

Parameters

path string

the path to the directory you are interested in. On Unix in the on-disk encoding. On Windows in UTF-8

flags uint

Currently must be set to 0. Reserved for future use.

Return Value

Type: Directory

a newly allocated GDir on success, NULL on failure. If non-NULL, you must free the result with g_dir_close() when you are finished with it.

Throws

GException on failure.

Meta