commit | 7db385eef50161f7c77cbe58d3700f405a740f7b | [log] [tgz] |
---|---|---|
author | Johannes Gijsbers <jlg@dds.nl> | Thu Oct 07 21:10:08 2004 +0000 |
committer | Johannes Gijsbers <jlg@dds.nl> | Thu Oct 07 21:10:08 2004 +0000 |
tree | 04de0d275660c2fd9f46c9acaa9903812197d5fe | |
parent | 8da2b01c3fb730c384cdc4e329933ee16cfe3497 [diff] |
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.