[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

rubenlm report at bugs.python.org
Mon Apr 26 18:27:19 CEST 2010


rubenlm <ruben at libhertz.com> added the comment:

Your solution sounds fine to me.

Currently we don't get a NameError because "names" is set to [] before the "try". What happens is that the "for" is skipped and later rmdir fails with "directory not empty".

----------

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


More information about the Python-bugs-list mailing list