[issue1669] shutil.rmtree fails on symlink, after deleting contents

Raghuram Devarakonda report at bugs.python.org
Mon Jan 21 18:44:17 CET 2008


Raghuram Devarakonda added the comment:

> and it should use the onerror() handling used for all other errors"
> which makes sense for me too.

Sure. I am ok with using 'onerror'. The point I am trying to make is
that there is slight difference between 'onerror' in this case and in
the three other places where it is called. In the case of symlink,
rmtree() returns even when 'onerror' doesn't raise exception. This is
not same in the other cases where rmtree() continues. I am just
wondering if this inconsistency is worth it and if it is, an explicit
mention in the doc will be nice.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1669>
__________________________________


More information about the Python-bugs-list mailing list