[issue8705] shutil.rmtree with empty filepath

Brian Curtin report at bugs.python.org
Sat Nov 20 06:18:17 CET 2010


Brian Curtin <curtin at acm.org> added the comment:

This can't actually work. You can't delete a directory which has open handles to it on Windows, namely the Python process you're running in that directory.

The empty file path isn't really the issue here. shutil.rmtree(os.getcwd()) attempts the same thing but gives you a better error message since a full path gets sent down to os.rmdir rather than "".

----------
nosy: +brian.curtin
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list