Skip to content

CoreFoundation: simplify and fix CFIterateDirectory #2020

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
Mar 29, 2019

Conversation

compnerd
Copy link
Member

Simplify the Windows implementation for _CFIterateDirectory.
Additionally, we were passing an absolute path for the full path which
is meant to be the prefixed path (with stuffToPrefix). For now pass
the fileName itself. This corrects the
-[NSURL urlForResource:withExtension:] implementation for Windows.

Simplify the Windows implementation for `_CFIterateDirectory`.
Additionally, we were passing an absolute path for the full path which
is meant to be the prefixed path (with `stuffToPrefix`).  For now pass
the `fileName` itself.  This corrects the
`-[NSURL urlForResource:withExtension:]` implementation for Windows.
@compnerd
Copy link
Member Author

CC: @millenomi

@compnerd
Copy link
Member Author

@swift-ci please test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test

@millenomi millenomi merged commit 9a2ef52 into swiftlang:master Mar 29, 2019
@compnerd compnerd deleted the iterating-directories branch March 29, 2019 20:21
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