GLib.KeyFile.prototype.load_from_dirs
function load_from_dirs(file: String, search_dirs: Array(String), flags: GLib.KeyFileFlags): [ok: Boolean, full_path: String] {
// Gjs wrapper for g_key_file_load_from_dirs()
}
This function looks for a key file named file in the paths specified in search_dirs, loads the file into key_file and returns the file's full path in full_path. If the file could not be loaded then an %error is set to either a GLib.FileError or GLib.KeyFileError.
Since 2.14
- file
a relative path to a filename to open and parse
- search_dirs
null-terminated array of directories to search
- flags
flags from GLib.KeyFileFlags
- ok
true if a key file could be loaded, false otherwise
- full_path
return location for a string containing the full path of the file, or null