Filter for only gzip files, this should be done better
Some checks failed
Rust / build (push) Failing after 47s
Some checks failed
Rust / build (push) Failing after 47s
This commit is contained in:
parent
9985485e83
commit
e0806a2c94
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user