def copy_tree_to_path(src_dir, dest_dir):
names = os.listdir(src_dir)<EOL>for name in names:<EOL><INDENT>srcname = os.path.join(src_dir, name)<EOL>destname = os.path.join(dest_dir, name)<EOL>if os.path.isdir(srcname):<EOL><INDENT>shutil.copytree(srcname, destname)<EOL><DEDENT>else:<EOL><INDENT>shutil.copy(srcname, destname)<EOL><DEDENT><DEDENT>
Copies all of the things inside src_dir to an already existing dest_dir.

    This looks eerily similar to shutil.copytree, but copytree has no option
    for not creating dest_dir.