Skip to content

read_dir does not work on Windows MSYS2 #29150

Closed
@KalitaAlexey

Description

@KalitaAlexey

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions