[WASI] Consistency Issue with io::ErrorKind in wasm32-wasip1-threads #125859
Open
Description
I have code in a wasm32-wasip1-threads environment that uses std::fs to check if a file exists.
If the file does not exist, as you can see in this code snippet:
rust/library/std/src/sys/pal/wasi/fs.rs
Lines 713 to 727 in acaf0ae
In other environments, it provides io::ErrorKind::NotFound. Therefore, I would like this to be consistent.