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
name
to thelist
, setting itstype
andflags
.- Parameters:
name – the name of the attribute to add.
type – the
FileAttributeType
for the attribute.flags –
FileAttributeInfoFlags
for the attribute.
- dup() FileAttributeInfoList
Makes a duplicate of a file attribute info list.
- lookup(name: str) FileAttributeInfo
Gets the file attribute with the name
name
fromlist
.- 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.