Skip to content

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

Open
0xfoudy wants to merge 3 commits intoRareSkills:mainfrom
0xfoudy:main
Open

Checking and fixing rights while deleting the temporary directory on Windows #7
0xfoudy wants to merge 3 commits intoRareSkills:mainfrom
0xfoudy:main

Conversation

@0xfoudy
Copy link
Copy Markdown

@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