mirror of
https://github.com/nivekuil/rip
synced 2024-11-26 13:40:19 +00:00
Make -s only print the grave paths
This commit is contained in:
parent
9190868850
commit
6292d01c8e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue