Gio.FileAttributeInfoList¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| infos | Gio.FileAttributeInfo | r/w | an array of Gio.FileAttributeInfos. | 
| n_infos | int | r/w | the number of values in the array. | 
Details¶
- 
class Gio.FileAttributeInfoList¶
- Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as - Gio.FileAttributeInfos.- 
classmethod new()[source]¶
- Returns: - a - Gio.FileAttributeInfoList.- Return type: - Gio.FileAttributeInfoList- Creates a new file attribute info list. 
 - 
add(name, type, flags)[source]¶
- Parameters: - name (str) – the name of the attribute to add.
- type (Gio.FileAttributeType) – theGio.FileAttributeTypefor the attribute.
- flags (Gio.FileAttributeInfoFlags) –Gio.FileAttributeInfoFlagsfor the attribute.
 - Adds a new attribute with name to the self, setting its type and flags. 
- name (
 - 
dup()[source]¶
- Returns: - a copy of the given self. - Return type: - Gio.FileAttributeInfoList- Makes a duplicate of a file attribute info list. 
 - 
lookup(name)[source]¶
- Parameters: - name ( - str) – the name of the attribute to look up.- Returns: - a - Gio.FileAttributeInfofor the name, or- Noneif an attribute isn’t found.- Return type: - Gio.FileAttributeInfo- Gets the file attribute with the name name from self. 
 - 
ref()[source]¶
- Returns: - Gio.FileAttributeInfoListor- Noneon error.- Return type: - Gio.FileAttributeInfoList- References a file attribute info list. 
 
- 
classmethod