Closed jrflat closed 2 days ago
We should not strip the trailing slash when getting the fileSystemPath for C:\ on Windows, since C:\ represents the root while C: does not. Similarly, we should not strip the trailing slash for any UNC path, since the trailing slash might be root.
fileSystemPath
C:\
C:
Resolves https://github.com/swiftlang/swift-foundation/issues/976 and https://github.com/swiftlang/swift-foundation/issues/977
@swift-ci please test
We should not strip the trailing slash when getting the
fileSystemPath
forC:\
on Windows, sinceC:\
represents the root whileC:
does not. Similarly, we should not strip the trailing slash for any UNC path, since the trailing slash might be root.Resolves https://github.com/swiftlang/swift-foundation/issues/976 and https://github.com/swiftlang/swift-foundation/issues/977