[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

Alessandro Moura report at bugs.python.org
Fri Sep 7 00:35:53 CEST 2012


Alessandro Moura added the comment:

Yes, confirmed. When checking whether the provided path is a directory, rmtree does not check whether ignore_errors is set. According to the docstring, "If ignore_errors is set, errors are ignored". Presumably this means any error, in which case this is not the desired behaviour.

The attached patch fixes this.

----------
keywords: +patch
nosy: +eng793
Added file: http://bugs.python.org/file27138/shutil.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15872>
_______________________________________


More information about the Python-bugs-list mailing list