write_file_to_s3: Write a file to S3

Description Usage Arguments Value Examples

View source: R/write_to_s3.R

Description

Write a file to S3

Usage

1
2
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

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

moj-analytical-services/s3tools documentation built on Sept. 13, 2021, 5:31 a.m.