Krikri::PluginHelpers::FileAttributes
FileAttributes - pure parsing for stat's get_mime/get_attributes
options. Both shell out in real Ansible too (file and lsattr
have no native Crystal or stdlib equivalent - this mirrors real
Ansible's own module_utils/basic.py exactly, not a missed
native-conversion opportunity like stat/find's old shell versions
were), so this module only covers parsing their output, not running
the commands themselves (that's the plugin's own job, via the
existing local/remote remote_exec split).
Constants
Maps lsattr's single-letter flags to their real Ansible attribute names - verified against a real ansible-core install's own module_utils/common/file.py FILE_ATTRIBUTES table, not guessed.
Class methods
Parses lsattr -vd <path>'s output, shaped like
"719511458 --------------e------- /path" (version, dash-padded
flags, path - whitespace-separated). Returns {nil, "", [] of
String} (real Ansible's own fallback, e.g. on a filesystem lsattr
doesn't support) if the output doesn't match that shape.