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.FileAttributeInfoListCreates 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.FileAttributeInfoListMakes 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, orNoneif an attribute isn’t found.Return type: Gio.FileAttributeInfoGets the file attribute with the name name from self.
-
ref()[source]¶ Returns: Gio.FileAttributeInfoListorNoneon error.Return type: Gio.FileAttributeInfoListReferences a file attribute info list.
-
classmethod