Skip to content

Conversation

@yangbobo2021
Copy link
Contributor

This PR improves directory deletion on Windows by implementing a custom rmtree function to handle Windows-specific deletion errors. The changes include:

  • Implementing a custom rmtree function to handle Windows deletion errors
  • Replacing shutil.rmtree calls with the new rmtree utility function
  • Moving the __onerror handler to utils.py for centralized error handling

These changes should resolve issues related to directory deletion on Windows systems and improve overall reliability of the deletion process.

bobo yang added 2 commits October 23, 2024 17:54
- Implement custom rmtree function to handle Windows deletion errors
- Replace shutil.rmtree calls with new rmtree utility function
- Move __onerror handler to utils.py for centralized error handling
- Refactor rmtree function to handle Windows deletion errors
- Remove unused shutil imports from multiple files
- Add error handling and retry logic for file removal
@yangbobo2021 yangbobo2021 requested a review from kagami-l October 23, 2024 10:14
@kagami-l kagami-l merged commit 37d6f09 into main Oct 23, 2024
2 checks passed
@kagami-l kagami-l deleted the fix/rmtree-windows-deletion-failure branch October 23, 2024 12:37
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.

3 participants