pub fn process_file_type(
    potential_file_type: Option<&str>
) -> Result<Option<&str>, DiaryError>