dircnt
dircnt copied to clipboard
Consider continuing with warning when directory entry produces error
#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:
Can we use
let _ = writeln!(io::stdout(), "{}", read_dir.into_iter().count());
I have test it, it's gave me same time
Create PR?