Krikri::PluginHelpers::FileAttributes
FileAttributes - pure parsing for stat's get_mime/get_attributes
options. Both shell out in Ansible too (file and lsattr
have no native Crystal or stdlib equivalent - this mirrors
Ansible's own the Ansible module 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 Ansible attribute names - verified against a ansible-core install's own the Ansible module 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} (Ansible's own fallback, e.g. on a filesystem lsattr
doesn't support) if the output doesn't match that shape.