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.

Methods

class new ()
  add (name, type, flags)
  dup ()
  lookup (name)
  ref ()
  unref ()

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:

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: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.FileAttributeInfo for the name, or None if an attribute isn’t found.
Return type:Gio.FileAttributeInfo

Gets the file attribute with the name name from self.

ref()[source]
Returns:Gio.FileAttributeInfoList or None on error.
Return type:Gio.FileAttributeInfoList

References a file attribute info list.

unref()[source]

Removes a reference from the given self. If the reference count falls to zero, the self is deleted.