pub fn get_file_type(file_path: &PathBuf) -> Result<FileType, Error>