Gio.resources_get_info
function resources_get_info(path: String, lookup_flags: Gio.ResourceLookupFlags): [ok: Boolean, size: Number(gsize), flags: Number(guint32)] {
// Gjs wrapper for g_resources_get_info()
}
Looks for a file at the specified path in the set of globally registered resources and if found returns information about it.
lookup_flags controls the behaviour of the lookup.
Since 2.32
- path
A pathname inside the resource
- lookup_flags
- ok
true if the file was found. false if there were errors
- size
a location to place the length of the contents of the file, or null if the length is not needed
- flags
a location to place the flags about the file, or null if the length is not needed