Skip to content

Swift: fix remapping - #11028

Merged
AlexDenisov merged 1 commit into
mainfrom
redsun82/swift-filesystem
Oct 28, 2022
Merged

Swift: fix remapping#11028
AlexDenisov merged 1 commit into
mainfrom
redsun82/swift-filesystem

Conversation

@redsun82

Copy link
Copy Markdown
Contributor

With the change to std::filesystem some path concatenations were translated to appending, which is not the same. In case rhs is absolute lhs / rhs == rhs, while concatenating treats rhs as if it was relative. The same behaviour can be obtained in std::filesystem by using lhs / rhs.relative_path().

With the change to `std::filesystem` some path concatenations were
translated to appending, which is not the same. In case rhs is absolute
`lhs / rhs == rhs`, while concatenating treats `rhs` as if it was
relative. The same behaviour can be obtained in `std::filesystem` by
using `lhs / rhs.relative_path()`.
@redsun82
redsun82 requested a review from AlexDenisov October 28, 2022 09:19
@redsun82
redsun82 requested a review from a team as a code owner October 28, 2022 09:19
@github-actions github-actions Bot added the Swift label Oct 28, 2022
@AlexDenisov
AlexDenisov merged commit ce441ad into main Oct 28, 2022
@AlexDenisov
AlexDenisov deleted the redsun82/swift-filesystem branch October 28, 2022 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants