mirror of
https://github.com/eza-community/eza
synced 2024-09-06 00:13:51 +00:00
fix: crash using --git-repos on unreadable dir
Added extra filter to make sure the other `unwrap()` also doesn't make `eza` crash.
This commit is contained in:
parent
5a2fc5d360
commit
42396ba360
|
@ -204,6 +204,7 @@ fn get_files_in_dir(paths: &mut Vec<PathBuf>, path: PathBuf) {
|
|||
vec![path]
|
||||
}
|
||||
Ok(d) => d
|
||||
.filter(std::result::Result::is_ok)
|
||||
.map(|entry| entry.unwrap().path())
|
||||
.collect::<Vec<PathBuf>>(),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue