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

Guido van Rossum report at bugs.python.org
Thu Dec 20 18:25:12 CET 2007


Guido van Rossum added the comment:

I agree with Tesiph, more useful behavior would be to raise an error
immediately because the argument is not a directory. If you wanted to
remove the think linked to, you could use rmtree("foo/.",
ignore_errors=True).

----------
nosy: +gvanrossum

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


More information about the Python-bugs-list mailing list