[issue2663] shutil.copytree glob-style filtering [patch]
report at bugs.python.org
Sun Apr 20 23:28:24 CEST 2008
New submission from Tarek Ziadé <ziade.tarek at gmail.com>:
Here's a first draft of a small addon to shutil.copytree.
This patch allows excluding some folders or files from the copy, given
glob-style patterns. A callable can also be provided instead of the
patterns, for a more complex filtering.
I didn't upgrade Doc/shutil.rst yet in this patch, as this can be done
when the change will be accepted and in its final shape I guess.
components: Library (Lib)
title: shutil.copytree glob-style filtering [patch]
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10066/shutil.copytree.filtering.patch
Tracker <report at bugs.python.org>
More information about the Python-bugs-list