[issue23346] shutil.rmtree doesn't work correctly on FreeBSD.

STINNER Victor report at bugs.python.org
Thu Jan 29 13:54:49 CET 2015


STINNER Victor added the comment:

>> Does os.listdir(os.open('/tmp/test', os.O_RDONLY)) work?

> No, it throws 22.

Oh, too bad. Maybe we can detect this at Python compilation. If not, rmtree() should detect the failure and switch back to the unsafe implementation (which uses paths, not file descriptors).

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list