Skip to content

Comments

Add ignore locked files option to temp directory#1671

Merged
SimonCropp merged 2 commits intomainfrom
Add-ignoreLockedFiles-option-to-TempDirectory
Feb 7, 2026
Merged

Add ignore locked files option to temp directory#1671
SimonCropp merged 2 commits intomainfrom
Add-ignoreLockedFiles-option-to-TempDirectory

Conversation

@SimonCropp
Copy link
Member

No description provided.

Introduce an ignoreLockedFiles boolean to TempDirectory (default false) and wire it through the constructor and disposal logic. When true, disposal will catch IOException and UnauthorizedAccessException thrown by Directory.Delete and silently skip deletion so locked files don't cause test failures; the directory is left to be cleaned up later (24 hours). Added unit tests to validate the new behavior and the default (false) behavior, and updated documentation with a usage snippet and explanation.
@SimonCropp SimonCropp merged commit 0c31285 into main Feb 7, 2026
4 of 6 checks passed
@SimonCropp SimonCropp deleted the Add-ignoreLockedFiles-option-to-TempDirectory branch February 7, 2026 09:34
@SimonCropp SimonCropp modified the milestones: 32.0.0, 31.12.0 Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant