pub fn get_file_type<P: AsRef<Path>>(path: P) -> Result<FileType>
Detect the file type of the given file.