svenproppert (5) [Avatar] Offline
As due to some stupid mistakes the code crashed once on my laptop so I had to run it again, I sense it might be a good idea to add the following around each copy and / or directory creation step for robustness:
if not os.path.exists(dst):
os.mkdir(dst) / shutil.copyfile(src, dst)