File.info?
on a directory path to file breaks on Windows
#15073
Labels
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
platform:windows
topic:stdlib:files
If
README.md
is a file in the current directory, then this raises an exception:It is raised here:
crystal/src/crystal/system/win32/file.cr
Lines 115 to 128 in dacd97b
The error message suggests a
WinError.value
ofERROR_DIRECTORY
, which does not count as an expected failure. I have definitely never seen this before, and I am sure our Windows CI would have caught it, but I also recently upgraded to Windows 24H2 (10.0.26100.1742). Could anyone else confirm this?The text was updated successfully, but these errors were encountered: