pub fn detect_file_format<P: AsRef<Path>>(path: P) -> Result<Option<String>>
Detect the format of a file