Skip to content

fix: consider readonly files when deleting directories #863

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 5 commits into from
Jul 15, 2022
Merged

fix: consider readonly files when deleting directories #863

merged 5 commits into from
Jul 15, 2022

Conversation

VictorLlanir
Copy link
Contributor

@VictorLlanir VictorLlanir commented Jul 3, 2022

Closes #849 by implementing directory validation for ReadOnly files when trying to delete directory recursively

On the RemoveFile method, there was no validation to check if there is a ReadOnly file inside the directory berfore trying to remove. This PR implements this validation.

@VictorLlanir VictorLlanir changed the title #849 - Implementing directory validation for ReadOnly files fix: #849 - Implementing directory validation for ReadOnly files Jul 3, 2022
@fgreinacher fgreinacher self-requested a review July 11, 2022 20:59
Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @VictorLlanir, I have a small question/suggestion, let me know what you think.

@VictorLlanir
Copy link
Contributor Author

You're right, @fgreinacher. I'm going to fix this and update this PR.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@fgreinacher fgreinacher changed the title fix: #849 - Implementing directory validation for ReadOnly files fix: consider readonly files when deleting directories Jul 15, 2022
Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looking great now!

@github-actions
Copy link

This is addressed in release v17.0.23.

@github-actions github-actions bot added the state: released Issues that are released label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: released Issues that are released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recursively delete a directory with readonly file results in inconsistent state
2 participants