Skip to content

Fix Windows permission errors when cleaning output directories#110

Merged
hannahlanzrath merged 1 commit intomainfrom
fix/permission_error_in_examples
Feb 5, 2026
Merged

Fix Windows permission errors when cleaning output directories#110
hannahlanzrath merged 1 commit intomainfrom
fix/permission_error_in_examples

Conversation

@hannahlanzrath
Copy link
Contributor

@hannahlanzrath hannahlanzrath commented Jan 30, 2026

When running the example studies on Windows, deleting existing output directories could fail with PermissionError (WinError 5). This was caused by temporary file locks, most commonly while git was active in the repository.

This change makes the cleanup more robust by retrying the directory deletion and clearing read-only flags where needed. This avoids intermittent failures during example execution on Windows.

@hannahlanzrath hannahlanzrath force-pushed the fix/permission_error_in_examples branch 2 times, most recently from 2b26d52 to d760540 Compare January 30, 2026 11:29
@hannahlanzrath hannahlanzrath force-pushed the fix/permission_error_in_examples branch 3 times, most recently from aa35216 to f8649f9 Compare February 5, 2026 13:55
@hannahlanzrath hannahlanzrath force-pushed the fix/permission_error_in_examples branch from f8649f9 to aef7c24 Compare February 5, 2026 14:00
@hannahlanzrath hannahlanzrath merged commit 8cc24ce into main Feb 5, 2026
6 checks passed
@hannahlanzrath hannahlanzrath deleted the fix/permission_error_in_examples branch February 5, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant