Message141450
Hello,
This patch adds new function to shutil.
I think it's quite generic, and it fits shutil purpose.
Sample usage:
shutil.cleartree(path='/home/chin/Dev/python-hg-dev', ignore=shutil.ignore_pattterns('*.py'))
removes all files from path, except *.py files.
and
shutil.cleartree(path='/home/chin/Dev/python-hg-dev', ignore=shutil.ignore_pattterns('*.pyc'), invert=True)
is equivalent to `find /home/chin/Dev/python-hg-dev -name "*.pyc" -delete` |
|
Date |
User |
Action |
Args |
2011-07-30 17:52:52 | chin | set | recipients:
+ chin |
2011-07-30 17:52:52 | chin | set | messageid: <1312048372.59.0.959522450911.issue12661@psf.upfronthosting.co.za> |
2011-07-30 17:52:51 | chin | link | issue12661 messages |
2011-07-30 17:52:51 | chin | create | |
|