FileAttributeInfoList#
- class FileAttributeInfoList(**kwargs)#
Acts as a lightweight registry for possible valid file attributes.
The registry stores Key-Value pair formats as FileAttributeInfo.
Constructors#
- class FileAttributeInfoList
- classmethod new() FileAttributeInfoList#
Creates a new file attribute info list.
Methods#
- class FileAttributeInfoList
- add(name: str, type: FileAttributeType, flags: FileAttributeInfoFlags) None#
Adds a new attribute with
nameto thelist, setting itstypeandflags.- Parameters:
name – the name of the attribute to add.
type – the
FileAttributeTypefor the attribute.flags –
FileAttributeInfoFlagsfor the attribute.
- dup() FileAttributeInfoList#
Makes a duplicate of a file attribute info list.
- lookup(name: str) FileAttributeInfo#
Gets the file attribute with the name
namefromlist.- Parameters:
name – the name of the attribute to look up.
Fields#
- class FileAttributeInfoList
- infos#
An array of
FileAttributeInfo.
- n_infos#
The number of values in the array.