![](https://secure.gravatar.com/avatar/4b9f9219928e8fcefe689b2846977d35.jpg?s=120&d=mm&r=g)
April 21, 2008
12:25 a.m.
On Sun, Apr 20, 2008 at 4:15 PM, Tarek Ziadé <ziade.tarek@gmail.com> wrote:
I have submitted a patch for review here: http://bugs.python.org/issue2663
glob-style patterns or a callable (for complex cases) can be provided to filter out files or directories.
I'm not a big fan of the sequence-or-callable argument. Why not just make it a callable argument, and supply a utility function so that you can write something like:: exclude_func = shutil.excluding_patterns('*.tmp', 'test_dir2') shutil.copytree(src_dir, dst_dir, exclude=exclude_func) ? Steve -- I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a tiny blip on the distant coast of sanity. --- Bucky Katt, Get Fuzzy