[issue23638] shutil.copytree makedirs exception
Martin Panter
report at bugs.python.org
Wed Mar 11 23:18:53 CET 2015
Martin Panter added the comment:
In case it’s not clear to others, the first bit of code is from the shutil.copytree() implementation at Lib/shutil.py:303.
The documentation currently says “The destination directory . . . must not already exist”. Yuriy seems to be proposing to make copytree() use the existing destination directory, and only create it if it does not already exist. Perhaps you might be interested in Issue 20849, which proposes passing the os.makedirs(exist_ok=...) flag through, which would allow this functionality in a backwards-compatible way.
----------
nosy: +vadmium
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23638>
_______________________________________
More information about the Python-bugs-list
mailing list