pub fn stat_file(path: &str, config: &StatConfig) -> Result<String, Error>
Display file or filesystem status.
Returns the formatted output string, or an error if the file cannot be accessed.