Gio.FileAttributeInfoList¶
record (struct)
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as GFileAttributeInfos.
Constructors¶
new¶
Creates a new file attribute info list.
Methods¶
add¶
def add(self, name: str, type: FileAttributeType | int, flags: FileAttributeInfoFlags | int) -> None
Adds a new attribute with name to the list, setting
its type and flags.
Parameters:
name— the name of the attribute to add.type— theFileAttributeTypefor the attribute.flags—FileAttributeInfoFlagsfor the attribute.
dup¶
Makes a duplicate of a file attribute info list.
lookup¶
Gets the file attribute with the name name from list.
Parameters:
name— the name of the attribute to look up.
ref¶
References a file attribute info list.
unref¶
Removes a reference from the given list. If the reference count
falls to zero, the list is deleted.