Skip to content

URL.init(filePath:) should resolve against the base URL before checking if the file is a directory #606

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
May 14, 2024

Conversation

jrflat
Copy link
Contributor

@jrflat jrflat commented May 13, 2024

The fix I added in #602 to address this wasn't correct since .mergedPath(for:) should be called on an URL that has already been initialized with a base URL. I separated this logic out into a String extension that handles the merging generally and use this method when determining the absolute file path to directory check in .init(filePath:).

@jrflat
Copy link
Contributor Author

jrflat commented May 13, 2024

@swift-ci please test

@jrflat jrflat merged commit e991656 into swiftlang:main May 14, 2024
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.

2 participants