:right-sidebar: True FileAttributeInfoList =================================================================== .. currentmodule:: gi.repository.Gio .. class:: FileAttributeInfoList(**kwargs) :no-contents-entry: Acts as a lightweight registry for possible valid file attributes. The registry stores Key-Value pair formats as :obj:`~gi.repository.Gio.FileAttributeInfo`\. Constructors ------------ .. rst-class:: interim-class .. class:: FileAttributeInfoList :no-index: .. classmethod:: new() -> ~gi.repository.Gio.FileAttributeInfoList Creates a new file attribute info list. Methods ------- .. rst-class:: interim-class .. class:: FileAttributeInfoList :no-index: .. method:: add(name: str, type: ~gi.repository.Gio.FileAttributeType, flags: ~gi.repository.Gio.FileAttributeInfoFlags) -> None Adds a new attribute with ``name`` to the ``list``\, setting its ``type`` and ``flags``\. :param name: the name of the attribute to add. :param type: the :obj:`~gi.repository.Gio.FileAttributeType` for the attribute. :param flags: :obj:`~gi.repository.Gio.FileAttributeInfoFlags` for the attribute. .. method:: dup() -> ~gi.repository.Gio.FileAttributeInfoList Makes a duplicate of a file attribute info list. .. method:: lookup(name: str) -> ~gi.repository.Gio.FileAttributeInfo Gets the file attribute with the name ``name`` from ``list``\. :param name: the name of the attribute to look up. Fields ------ .. rst-class:: interim-class .. class:: FileAttributeInfoList :no-index: .. attribute:: infos An array of :obj:`~gi.repository.Gio.FileAttributeInfo`\. .. attribute:: n_infos The number of values in the array.