apple / swift-corelibs-foundation

The Foundation Project, providing core utilities, internationalization, and OS independence
swift.org
Apache License 2.0
5.23k stars 1.12k forks source link

[Windows] FileManager.default.fileExists(atPath) sometimes returns false to a valid path #4936

Closed stevenbrix closed 2 months ago

stevenbrix commented 2 months ago

If the path in question points to an app execution alias, this method returns false, even when the Win32 API PathFileExists returns true.

compnerd commented 2 months ago

This is going to be replaced with the new FileManager implementation in swift-foundation, so this is effectively a WONTFIX.