Retrieves facts for a file similar to the linux/unix 'stat' command.

Options

namedescriptionrequiredchoices
path The full path of the file/object to get the facts of true
follow Whether to follow symlinks
get_md5 Whether to return the md5 sum of the file. Will return None if we're unable to use md5 (Common for FIPS-140 compliant systems)
get_checksum Whether to return a checksum of the file (default sha1)
checksum_algorithm Algorithm to determine checksum of file. Will throw an error if the host is unable to use specified algorithm.
  • sha1
  • sha224sha256sha384sha512

Author

Bruce Pennypacker (@bpennypacker)