load_resource


Description:

[ Version ( since = "3.8" ) ]
public bool load_resource (Resource resource, string path, SourcePermissionFlags flags) throws Error

Loads data source key files from resource by enumerating the children at path and calling load_file on each child.

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

Parameters:

this

an SourceRegistryServer

resource

a Resource containing data source key files

path

the path to the data source key files inside resource

flags

permission flags for files loaded from path

Returns:

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