diff --git a/src/main.rs b/src/main.rs index 40bf71f..cc0a557 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,6 +70,7 @@ struct Place { fn hash_files(files: ReadDir) -> impl Iterator { files.into_iter() .map(|f| f.unwrap().path()) + .filter_map(|p| p.extension().and_then(|ext| ext.to_str()).filter(|p| p == "gz")) .map(|path| { let date = { let file_name = path.file_name().unwrap().to_str().unwrap();