def copy_cachedir(origin, destination, num_nodes=MAX_NODES):
    for i in range(num_nodes):
        from_dir = get_datadir_path(origin, i)
        to_dir = get_datadir_path(destination, i)
        shutil.copytree(from_dir, to_dir)
        initialize_datadir(destination, i)
def copy_cachedir(origin, destination, num_nodes=MAX_NODES):
    for i in range(num_nodes):
        from_dir = get_datadir_path(origin, i)
        to_dir = get_datadir_path(destination, i)
        shutil.copytree(from_dir, to_dir)
        initialize_datadir(destination, i)