mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We only want to path normalize a string (and replace backslashes with forward slashes if on Windows) if it's actually a path. But checking if there's a path with that name doesn't work if the path is a substring of an actual path. Additionally check whether the dirname points to something on the file system. If it does, it's likely meant to be interpreted as a path.
4.8 KiB
Executable File
4.8 KiB
Executable File