You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recursively delete a directory with readonly file results in inconsistent state #849
This test fails at the last line, as the directory is deleted, although the file still exists, resulting in an inconsistent state of the MockFileSystem
Expected behavior
The unit test should be successful.
Activity
fgreinacher commentedon May 18, 2022
Thanks for reporting! This would probably needs to be fixed in https://github.com/TestableIO/System.IO.Abstractions/blob/main/src/System.IO.Abstractions.TestingHelpers/MockDirectory.cs#L118.
VictorLlanir commentedon Jul 2, 2022
Hello, @fgreinacher, I would like to work on this issue.
fgreinacher commentedon Jul 3, 2022
Thanks!
VictorLlanir commentedon Jul 3, 2022
You're welcome, @fgreinacher! I've already opened a PR (#863) for this issue.
fix: consider readonly files when deleting directories (#863)
github-actions commentedon Jul 19, 2022
This is addressed in release v17.0.23.