open


Description:

public static Dir open (string filename, uint _flags = 0) throws FileError

Opens a directory for reading.

The names of the files in the directory can then be retrieved using read_name. Note that the ordering is not defined.

Parameters:

flags

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

path

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

Returns:

a newly allocated Dir on success, null on failure. If non-null, you must free the result with g_dir_close when you are finished with it.