download_file: Download a Single File from S3 into a local path

View source: R/utils.R

download_fileR Documentation

Download a Single File from S3 into a local path

Description

Download a Single File from S3 into a local path

Usage

download_file(bucket_name, path, target, sagemaker_session)

Arguments

bucket_name

(str): S3 bucket name

path

(str): file path within the bucket

target

(str): destination directory for the downloaded file.

sagemaker_session

(sagemaker.session.Session): a sagemaker session to interact with S3.

See Also

Other sagemaker_utils: .aws_partition(), .download_files_under_prefix(), base_from_name(), base_name_from_image(), build_dict(), common_variables, create_tar_file(), download_folder(), get_config_value(), get_short_version(), name_from_base(), name_from_image(), regional_hostname(), repack_model(), retries(), sagemaker_short_timestamp(), sagemaker_timestamp(), secondary_training_status_changed(), secondary_training_status_message(), sts_regional_endpoint(), unique_name_from_base()


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.