Eryk Sun <eryk...@gmail.com> added the comment:

Windows opens the working directory without delete sharing, so trying to delete 
it fails with a PermissionError for ERROR_SHARING_VIOLATION (winerror 32).

I discussed a modified version of the _rmtree() method in msg377358. The 
proposed version would try to reset the permissions in the first pass, recur 
once, and then give up because the permission error cannot be handled.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to