It's not necessary to do an os.path.exists(dst_dir) check before calling os.makedirs(), the exist_ok=True parameter is meant for this common pattern.
It's not necessary to do an os.path.exists(dst_dir) check before calling os.makedirs(), the exist_ok=True parameter is meant for this common pattern.