Gio.FileInfo.prototype.set_attribute_status
function set_attribute_status(attribute: String, status: Gio.FileAttributeStatus): Boolean {
// Gjs wrapper for g_file_info_set_attribute_status()
}
Sets the attribute status for an attribute key. This is only needed by external code that implement Gio.File.prototype.set_attributes_from_info or similar functions.
The attribute must exist in info for this to work. Otherwise false is returned and info is unchanged.
Since 2.22
- attribute
a file attribute key
- status
- Returns
true if the status was changed, false if the key was not set.