pub fn is_jpeg(file: DirEntry) -> Option<DirEntry>
Returns the file handle if the lowercase extension corresponds to either “jpeg” or “jpg”. Useful in filter_map.
filter_map