[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: Cleartree seems more equivalent to a shell expression, as you pointed out to find and -delete,than a utility. We might find those useful when work on CLI as opposed to programmatically needing them via APIs. (Won't you agree?) Chin, can you suggest certain u

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread R. David Murray
R. David Murray added the comment: My immediate reaction is that this is too specialized. We'll see what others think. -- nosy: +r.david.murray ___ Python tracker ___

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Leonid Vasilev
New submission from Leonid Vasilev : 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 file