We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
Error = NotFound
Error = Other
rustc 1.5.0-dev (c7a58b534 2015-10-17)
The text was updated successfully, but these errors were encountered:
Add error kind handling for ERROR_PATH_NOT_FOUND
dd11d3c
Fixes rust-lang#29150 Signed-off-by: Peter Atashian <[email protected]>
Auto merge of #29155 - retep998:read-no-dir, r=alexcrichton
a9d5285
Fixes #29150 r? @alexcrichton
No branches or pull requests
read_dir returns ErrorKind::Other for inexistent file.
I tried this code
I expected to see
Error = NotFound
.Instead it shows
Error = Other
Rust version
rustc 1.5.0-dev (c7a58b534 2015-10-17)
The text was updated successfully, but these errors were encountered: