std::fs::File::create
return a wrong error on Windows when the path points to a directory
#134893
Labels
A-filesystem
Area: `std::fs`
A-io
Area: `std::io`, `std::fs`, `std::net` and `std::path`
C-discussion
Category: Discussion or questions that doesn't represent real issues.
O-windows
Operating system: Windows
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
std::fs::File::create
return a wrong error on Windows.I tried this code:
I expected the
ErrorKind
isIsADirectory
. Instead, theErrorKind
isPermissionDenied
.Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: