Gio.Resource.prototype.get_info
function get_info(path: String, lookup_flags: Gio.ResourceLookupFlags): [ok: Boolean, size: Number(gsize), flags: Number(guint32)] {
// Gjs wrapper for g_resource_get_info()
}
Looks for a file at the specified path in the resource 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