Gio.FileAttributeInfoList.prototype.add

function add(name: String, type: Gio.FileAttributeType, flags: Gio.FileAttributeInfoFlags): void {
    // Gjs wrapper for g_file_attribute_info_list_add()
}
  

Adds a new attribute with name to the list, setting its type and flags.

name

the name of the attribute to add.

type

the Gio.FileAttributeType for the attribute.

flags

Gio.FileAttributeInfoFlags for the attribute.