Skip to content

Commit

Permalink
fix: Open interactive mode even if one of the input paths can't be re…
Browse files Browse the repository at this point in the history
…ad. (#124)

Note that there can still be improvements in indicating which path
failed.
Also it will happily show an empty user interface in case all input
paths are not readable.
  • Loading branch information
Byron committed May 12, 2022
1 parent 75b3eed commit 8742232
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ impl Traversal {

for path in input.into_iter() {
let mut last_seen_eid = 0;
let device_id = crossdev::init(path.as_ref())?;
let device_id = match crossdev::init(path.as_ref()) {
Ok(id) => id,
Err(_) => {
t.io_errors += 1;
continue;
}
};
for (eid, entry) in walk_options
.iter_from_path(path.as_ref())
.into_iter()
Expand Down

0 comments on commit 8742232

Please sign in to comment.