Gio.FileAttributeInfoList¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
infos |
r/w |
an array of |
|
n_infos |
r/w |
the number of values in the array. |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gio.FileAttributeInfoList¶
Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as
Gio.FileAttributeInfos
.- add(name, type, flags)[source]¶
- Parameters:
name (
str
) – the name of the attribute to add.type (
Gio.FileAttributeType
) – theGio.FileAttributeType
for the attribute.flags (
Gio.FileAttributeInfoFlags
) –Gio.FileAttributeInfoFlags
for the attribute.
Adds a new attribute with name to the self, setting its type and flags.
- dup()[source]¶
- Returns:
a copy of the given self.
- Return type:
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.FileAttributeInfo
for the name, orNone
if an attribute isn’t found.- Return type:
Gets the file attribute with the name name from self.
- ref()[source]¶
- Returns:
Gio.FileAttributeInfoList
orNone
on error.- Return type:
References a file attribute info list.