Gio.FileInfo.prototype.set_attribute

function set_attribute(attribute: String, type: Gio.FileAttributeType, value_p: void): void {
    // Gjs wrapper for g_file_info_set_attribute()
}
  

Sets the attribute to contain the given value, if possible. To unset the attribute, use %G_ATTRIBUTE_TYPE_INVALID for type.

attribute

a file attribute key.

type

a Gio.FileAttributeType

value_p

pointer to the value