def fetch_all(target_directory, allow_overwrite=False):
    host_config_dir = os.path.join(target_directory, env.host)
    for file_name in ALL_CONFIG:
        local_config_file = os.path.join(host_config_dir, file_name)
        ensure_parent_directories_exist(local_config_file)
        if not allow_overwrite and os.path.exists(local_config_file):
            abort("Refusing to overwrite %s" % (local_config_file))
        configuration_fetch(file_name, local_config_file)
dataset/ETHPy150Open prestodb/presto-admin/prestoadmin/configure_cmds.py/fetch_all/original