New submission from Marian Beermann: The use of os.listdir severely limits the speed of this function on anything except solid-state drives.
Using the new-in-Python 3.5 os.scandir should eliminate this bottleneck. ---------- components: Library (Lib) messages: 279745 nosy: enkore priority: normal severity: normal status: open title: shutil.rmtree is inefficient due to listdir() instead of scandir() versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com