from pathlib import Path
import shutil


def copy_dir_to_target(source_directory: Path, destination_directory: Path) -> bool:
    """

    Args:
        source_directory: a folder to copy
        destination_directory: the parent directory to copy source_directory into

    Returns: True if copy was successful, False otherwise

    """
    if source_directory.exists() and source_directory.is_dir():
        print("Found directory at %s" % source_directory.resolve())
    else:
        print("Unable to find required folder, looked at %s" % source_directory.resolve())
        return False
    print("Copying to %s" % destination_directory)
    shutil.copytree(str(source_directory), str(destination_directory / source_directory.name))
    return True