shutil.copytree unable to avoid FileExistsError Python 3.7

420 views Asked by At

I know that with Python 3.8 has been introduced 'dirs_exist_ok=True' argument but I am constrained on Python 3.7 I have tried with no success

shutil.copytree(homePath, dst, symlinks=False, ignore=None)

Is there a way to avoid the exception with 1 line of code?

0

There are 0 answers