Skip to content
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

Allow File.delete to remove read-only files on Windows #13462

Conversation

HertzDevil
Copy link
Contributor

Closes #9903.

Note that file deletion on POSIX only requires write and execute permissions on the parent directory, and the file itself's owner and permissions do not matter, so nothing special needs to be done for Unix-like systems. This PR can be seen as aligning Windows' behavior to POSIX.

The similar helper method in Shards can also be removed after this.

@straight-shoota
Copy link
Member

I think this might need some discussion and I've opened #13471 for that.

@straight-shoota straight-shoota added this to the 1.9.0 milestone May 17, 2023
@straight-shoota straight-shoota merged commit e326e8f into crystal-lang:master May 22, 2023
46 checks passed
@HertzDevil HertzDevil deleted the feature/windows-file-delete-read-only branch May 22, 2023 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants