[Python-Dev] A smarter shutil.copytree ?

Tarek Ziadé ziade.tarek at gmail.com
Wed May 21 17:07:00 CEST 2008


On Tue, Apr 22, 2008 at 7:04 PM, Steven Bethard <steven.bethard at gmail.com>
wrote:

> >  The callable takes the src directory + its content as a list, and
> >  returns filter eligible for exclusion
>
> FWIW, that looks better to me.
>
> >  That makes me wonder, like Alexander said on the bug tracker:
> >  In the glob-style patterns callable, do we want to deal with absolute
> paths ?
>
> I think that it would be okay to document that
> shutil.ignore_patterns() only accepts patterns matching individual
> filenames (not complex paths). If someone needs to do something with
> absolute paths, then they can write their own 'ignore' function,
> right?
>

Yes, the patch has been changed and corrected by a few people (thanks), and
so the doc,

http://bugs.python.org/issue2663

So i guess it can be reviewed by a commiter at this stage

Regards
Tarek



>
> 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
>



-- 
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080521/809338f9/attachment.htm>


More information about the Python-Dev mailing list