Policy Driver is a driver script used as part of List Processing rules. It is not meant to be called directly.
The Policy Driver also provides a special
AttrDict class, which holds the attributes for files selected by processing rules.
These AttrDict classes are what the user-defined processing functions work on.
The file attributes included in the class are:
Attribute names are case-insensitive and any underscores are ignored.
This class is a modified dictionary, which holds a collection of attributes for a file.
The class allows you to reference file attributes as either dictionary keys or as object properties, i.e.
>>> x['filesize'] == x.filesize
The class also supports attribute aliases - in particular, case and underscores are ignored, e.g.
>>> x.FILE_NAME == x.filename
Create an AttrDict from a list-file string
i.e. strings from the files generated by GPFS LIST rules.
Attribute values are automatically converted to their appropriate type, e.g.
>>> type(x.filesize) == int >>> type(x.creation_time) == datetime