[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> add exist_ok to shutil.copytree ___ Python tracker ___ __

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
Changes by yuriy_levchenko : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
yuriy_levchenko added the comment: Thanks for the clarifications. Yes parameter will be a good solution! -- ___ Python tracker ___ ___

[issue23638] shutil.copytree makedirs exception

2015-03-11 Thread Martin Panter
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()

[issue23638] shutil.copytree makedirs exception

2015-03-11 Thread yuriy_levchenko
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. Maybe