Skip to content

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.

@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