]> granicus.if.org Git - python/commit
Rewrite rmtree using os.walk to fix bug #1025127:
authorJohannes Gijsbers <jlg@dds.nl>
Thu, 7 Oct 2004 21:10:08 +0000 (21:10 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Thu, 7 Oct 2004 21:10:08 +0000 (21:10 +0000)
commit7db385eef50161f7c77cbe58d3700f405a740f7b
tree04de0d275660c2fd9f46c9acaa9903812197d5fe
parent8da2b01c3fb730c384cdc4e329933ee16cfe3497
Rewrite rmtree using os.walk to fix bug #1025127:

The shutils.rmtree() implementation uses an excessive amount of memory when
deleting large directory hierarchies. Before actually deleting any files, it
builds up a list of (function, filename) tuples for all the files that it is
going to remove.
Lib/shutil.py