Skip to content

read_dir does not work on Windows MSYS2 #29150

New issue

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

Closed
KalitaAlexey opened this issue Oct 18, 2015 · 0 comments
Closed

read_dir does not work on Windows MSYS2 #29150

KalitaAlexey opened this issue Oct 18, 2015 · 0 comments
Labels
O-windows Operating system: Windows

Comments

@KalitaAlexey
Copy link
Contributor

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)

@alexcrichton alexcrichton added the O-windows Operating system: Windows label Oct 18, 2015
retep998 added a commit to retep998/rust that referenced this issue Oct 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

2 participants