[issue20849] add exist_ok to shutil.copytree

Éric Araujo report at bugs.python.org
Fri Mar 7 22:41:50 CET 2014


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


More information about the Python-bugs-list mailing list