Skip to contents

Convenience function to upload multiple files to S3 storage in batch.

Usage

upload_multiple_to_s3(
  file_paths,
  s3_paths = NULL,
  cfg = NULL,
  bucket = NULL,
  overwrite = FALSE,
  parallel = FALSE
)

Arguments

file_paths

character Vector of local file paths to upload.

s3_paths

character Vector of S3 paths. If NULL, uses basenames. Must be same length as file_paths if provided.

cfg

list Configuration object containing S3 settings.

bucket

character S3 bucket name.

overwrite

logical Whether to overwrite existing files.

parallel

logical Whether to upload files in parallel. Default FALSE.

Value

Named logical vector indicating success (TRUE) or failure (FALSE) for each file.

Examples

if (FALSE) { # \dontrun{
files <- c("file1.nc", "file2.nc", "file3.nc")
upload_multiple_to_s3(files, parallel = TRUE)
} # }