[issue20849] add exist_ok to shutil.copytree
Elias Zamaria
report at bugs.python.org
Sun Mar 9 01:03:23 CET 2014
Elias Zamaria added the comment:
I am not sure. I am not on the python-ideas mailing list, and I am not sure
what adding and maintaining the discussion would entail, or if I would have
the time to do it or want to deal with the clutter in my inbox. I just
committed this patch because it seemed like it would be quick and easy.
I can start the discussion if anyone specifically wants me to, but I don't
want to let anyone down.
On Fri, Mar 7, 2014 at 1:41 PM, Éric Araujo <report at bugs.python.org> wrote:
>
> Éric Araujo added the comment:
>
> Contrary to makedirs, there could be two interpretations for exist_ok in
> copytree: a) if a directory or file already exists in the destination,
> ignore it and go ahead b) only do that for directories.
>
> The proposed patch does b), but the cp tool does a). It's not clear to me
> which is best. Can you start a discussion on the python-ideas mailing list?
>
> ----------
> nosy: +eric.araujo
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue20849>
> _______________________________________
>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20849>
_______________________________________
More information about the Python-bugs-list
mailing list