[issue28564] shutil.rmtree is inefficient due to listdir() instead of scandir()

Serhiy Storchaka report at bugs.python.org
Mon Nov 7 12:29:17 EST 2016


Serhiy Storchaka added the comment:

Proposed patch implements shutil.rmtree using os.scandir. Needed file descriptors support in os.scandir (issue25996). I did not test how this affects the performance of shutil.rmtree.

----------
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file45382/shutil-rmtree-scandir.patch

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


More information about the Python-bugs-list mailing list