mirror of
https://github.com/nivekuil/rip
synced 2024-11-22 19:53:12 +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)
|
||||
.lines()
|
||||
.filter_map(|l| l.ok())
|
||||
.filter(|l| record_entry(l).dest
|
||||
.starts_with(path.to_str().unwrap())) {
|
||||
.map(|l| record_entry(&l).dest.to_string())
|
||||
.filter(|l| l.starts_with(path.to_str().unwrap())) {
|
||||
println!("{}", line);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue