Files
swift-mirror/utils/PathSanitizingFileCheck
Henrik G. Olsson 98fe7c0d1d Check if dirname exists
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.
2025-10-13 16:51:05 -07:00

4.8 KiB
Executable File