Make -s only print the grave paths

This commit is contained in:
Kevin Liu 2016-10-22 05:26:23 -07:00
parent 9190868850
commit 6292d01c8e

View file

@ -157,8 +157,8 @@ Send files to the graveyard (/tmp/.graveyard) instead of unlinking them.")
for line in BufReader::new(f) for line in BufReader::new(f)
.lines() .lines()
.filter_map(|l| l.ok()) .filter_map(|l| l.ok())
.filter(|l| record_entry(l).dest .map(|l| record_entry(&l).dest.to_string())
.starts_with(path.to_str().unwrap())) { .filter(|l| l.starts_with(path.to_str().unwrap())) {
println!("{}", line); println!("{}", line);
} }
} }