Filter for only gzip files, this should be done better
Some checks failed
Rust / build (push) Failing after 47s

This commit is contained in:
Joshua Coles 2024-04-25 14:14:52 +01:00
parent 9985485e83
commit e0806a2c94

View File

@ -70,6 +70,7 @@ struct Place {
fn hash_files(files: ReadDir) -> impl Iterator<Item=(String, PathBuf, String)> {
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();