dircnt icon indicating copy to clipboard operation
dircnt copied to clipboard

Consider continuing with warning when directory entry produces error

Open dtolnay opened this issue 3 years ago • 2 comments

#1

I'm not sure which behavior is right. In particular I don't know what fraction of the time continuing would just end up in an infinite loop of the same error getting repeated.

Maybe it needs to depend on the .kind() of the i/o error. :confused:

dtolnay avatar Oct 17 '22 20:10 dtolnay

Can we use

let _ = writeln!(io::stdout(), "{}", read_dir.into_iter().count());

I have test it, it's gave me same time

TheAwiteb avatar Oct 20 '22 21:10 TheAwiteb

Create PR?

TheAwiteb avatar Oct 20 '22 21:10 TheAwiteb