write_file_to_s3: Write a file to S3

View source: R/write.R

write_file_to_s3R Documentation

Write a file to S3

Description

Write a file to S3

Usage

write_file_to_s3(local_file_path, s3_path, overwrite = FALSE, multipart = TRUE)

Arguments

local_file_path

A character string containing the filename (or full file path) of the file you want to upload to S3.

s3_path

A character string containing the full path to where the file should be stored in S3, including any directory names and the bucket name.

overwrite

A logical indicating whether to overwrite the file if it already exists.

multipart

A logical indicating whether to use multipart uploads. See http://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html. If the file specified by local_file_path is less than 100 MB, this is ignored.

Value

Returns nothing

Examples

write_file_to_s3("myfiles/mydata.csv", "alpha-everyone/delete/my_csv.csv")

moj-analytical-services/Rs3tools documentation built on Aug. 9, 2024, 1:27 a.m.