Here’s a solution that’s part of the standard library:
from distutils.dir_util import copy_tree
copy_tree("/a/b/c", "/x/y/z")
See this similar question.
Copy directory contents into a directory with python
- Reference – https://docs.python.org/3/distutils/apiref.html#distutils.dir_util.copy_tree