[Python-ideas] Add shutil.ignore_patterns() to shutil.rmtree()

George Fischhof george at fischhof.hu
Wed May 10 03:01:29 EDT 2017


2017. máj. 5. du. 7:02 ezt írta ("Oleg Broytman" <phd at phdru.name>):

On Fri, May 05, 2017 at 04:50:07PM +0200, George Fischhof <
george at fischhof.hu> wrote:
> yes, something like that ... ;-) but I use windows, and I want the feature
> in Python, with a simple and elegant way (1-2 commands)
>
> 2017-05-05 16:14 GMT+02:00 Oleg Broytman <phd at phdru.name>:
>
> > On Fri, May 05, 2017 at 03:55:37PM +0200, George Fischhof <
> > george at fischhof.hu> wrote:
> > > Actually it would be good if copytree() would be able to overwrite
files
> > > and directories.
> >
> >    Seems you want rsync, no?

   I can understand the need but I don't think such a library/script
should be in stdlib.

Oleg.
--
     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Python-ideas mailing list
Python-ideas at python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/



But if shutil.copytree would be able to overwrite, it would be good, and
simetimes enough. And I think it is not too difficult to implement ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170510/93d82b57/attachment.html>


More information about the Python-ideas mailing list