Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking and fixing rights while deleting the temporary directory on Windows #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

0xfoudy
Copy link

@0xfoudy 0xfoudy commented Mar 29, 2023

Added an onerror function that is called if the rm.tree has an error. The function checks the writability of the path then fixes the rights.

onerror will be deprecated and should be replaced by onexc starting python version 3.12, see the what's new documentation

Closes #8

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.

Unable to run script on Windows, PermissionError: [WinError 5] Access is denied.
1 participant