I've recently have this trouble: I needed a function that removes an entirely folder in windows so I searched and this is what I get:
How do I remove/delete a folder that is not empty with Python? empty-with-python
The answers, that looks ok, seems a bit confusing and large for me... there should be a better way to solve the oneerror while accesing files in windows with shutil.rmtree (raise an error trying to acces read only files)...