Skip to content

Force file removal in Windows _removeItem #2329

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
Jun 11, 2019

Conversation

gmittert
Copy link
Contributor

unlink on posix ignores if a file is read only since it only needs write
permissions on the parent directory to remove it. To emulate this on
Windows, if a file is read only, unset the read only bit and then remove
it.

unlink on posix ignores if a file is read only since it only needs write
permissions on the parent directory to remove it. To emulate this on
Windows, if a file is read only, unset the read only bit and then remove
it.
@millenomi
Copy link
Contributor

@swift-ci please test linux

@millenomi millenomi merged commit 9297b5d into swiftlang:master Jun 11, 2019
@gmittert gmittert deleted the ForcefullyRemoved branch June 11, 2019 20:31
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