[issue32247] shutil-copytree: Create dst folder only if it doesn't exist

2017-12-08 Thread Martin Panter
Change by Martin Panter : -- superseder: -> add exist_ok to shutil.copytree ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue32247] shutil-copytree: Create dst folder only if it doesn't exist

2017-12-08 Thread Radostin
Change by Radostin : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue32247] shutil-copytree: Create dst folder only if it doesn't exist

2017-12-08 Thread Thomas Kluyver
Thomas Kluyver added the comment: This is documented: > The destination directory, named by dst, must not already exist https://docs.python.org/3/library/shutil.html#shutil.copytree I guess that avoids complications that might arise from merging a directory. -- nosy: +takluyver ___

[issue32247] shutil-copytree: Create dst folder only if it doesn't exist

2017-12-07 Thread Radostin
New submission from Radostin : shutil.copytree method always tries to create the destination directory which raises the error message "OSError: [Errno 17] File exists". This issue has been discussed here: https://stackoverflow.com/questions/1868714/how-do-i-copy-an-entire-directory-of-files-int