load_directory


Description:

public bool load_directory (string path, SourcePermissionFlags flags) throws Error

Loads data source key files in path.

Because multiple errors can occur when loading multiple files, throws is only set if path can not be opened. If a key file fails to load, the error is broadcast through the load_error signal.

If the REMOVABLE flag is given, then the this will emit signals on the D-Bus interface when key files are created or deleted in path .

Parameters:

this

an SourceRegistryServer

path

the path to the directory to load

flags

permission flags for files loaded from path

Returns:

true if path was successfully opened, but this does not imply the key files were successfully loaded