Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - add exist_ok to shutil.copytree
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23638
yuriy_levchenko added the comment:
Thanks for the clarifications. Yes parameter will be a good solution!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23638
___
Changes by yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23638
___
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()
New submission from yuriy_levchenko:
We have a code:
names = os.listdir(src)
if ignore is not None:
ignored_names = ignore(src, names)
else:
ignored_names = set()
os.makedirs(dst)
errors = []
But if I had created this folder. I have exception.