Python: shutil.rmtree fails on Windows with 'Access is denied'
- by Sridhar Ratnakumar
In Python, when running shutil.rmtree over a folder that contains a read-only file, the following exception is printed:
File "C:\Python26\lib\shutil.py", line 216, in rmtree
rmtree(fullname, ignore_errors, onerror)
File "C:\Python26\lib\shutil.py", line 216, in rmtree
rmtree(fullname, ignore_errors, onerror)
File…