from distutils.dir_util import copy_tree # copy subdirectory example from_directory = "/a/b/c" to_directory = "/x/y/z" copy_tree(from_directory, to_directory)