[issue12661] Add a new shutil.cleartree function to shutil module

Leonid Vasilev report at bugs.python.org
Sun Jul 31 08:00:27 CEST 2011


Leonid Vasilev <vsleonid at gmail.com> added the comment:

Added file with sample usage (extracted from real application).

the main purpose of shutil.cleartree()
is to remove unnecessary files from tree, where
patterns of ignored or deleted files are computed
dynamically.

Yes I agree, that it might be done by shell expression, but in case of dynamic patterns it will be hacky.

----------
Added file: http://bugs.python.org/file22807/example.py

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


More information about the Python-bugs-list mailing list