[issue42605] dir_util.copy_tree crashes if folder it previously created is removed

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If y

[issue42605] dir_util.copy_tree crashes if folder it previously created is removed

2020-12-08 Thread Aleksey Vlasenko
New submission from Aleksey Vlasenko : Minimal example: import os import shutil from distutils import dir_util shutil.rmtree('folder1') os.makedirs('folder1/folder2/folder3/') with open('folder1/folder2/folder3/data.txt', 'w') as fp: fp.write('hello') print(os.path.exists('folder1/ne