Closed
Description
read_dir returns ErrorKind::Other for inexistent file.
I tried this code
let path = Path::new("/def");
if let Err(error) = read_dir(path) {
println!("Error = {:?}", error.kind());
}
I expected to see Error = NotFound
.
Instead it shows Error = Other
Rust version rustc 1.5.0-dev (c7a58b534 2015-10-17)