Skip to content

Foundation: improve relative path computation for iteration on Windows #4797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

compnerd
Copy link
Member

This partially corrects the relative path computation. We no longer fail to create the file system representation if it exceeds MAX_PATH due to the switch to withUnsafeNTPath. We will still fail to properly create the relative path if the paths are unrelated and if the relative path exceeds MAX_PATH. However, this still is an improvement over the status quo.

This partially corrects the relative path computation.  We no longer
fail to create the file system representation if it exceeds `MAX_PATH`
due to the switch to `withUnsafeNTPath`.  We will still fail to properly
create the relative path if the paths are unrelated and if the relative
path exceeds `MAX_PATH`.  However, this still is an improvement over the
status quo.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit adf511f into swiftlang:main Jul 19, 2023
@compnerd compnerd deleted the long-relatively-short branch July 19, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant