Learn R Programming

flyio (version 0.1.4)

export_folder: Upload a folder from the local system to cloud

Description

Write a local folder to the cloud, S3 or GCS

Usage

export_folder(localfolder, bucketpath, pattern = "*", overwrite = TRUE,
  data_source = flyio_get_datasource(),
  bucket = flyio_get_bucket(data_source), show_progress = FALSE, ...)

Arguments

localfolder

path of the folder in which all the files are to be uploaded

bucketpath

path of the folder in which the files are to be uploaded

pattern

pattern of the file names in the folder to be uploaded

overwrite

if files need to be overwritten (if already present)

data_source

the name of the data source, if not set globally. can be gcs or s3

bucket

the name of the bucket, if not set globally

show_progress

logical. Shows progress of the upload operation.

...

other parameters for gcs/s3 upload

Value

the filename and path of the file in the bucket

Examples

Run this code
# NOT RUN {
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
export_folder("folder-local/", "folder-on-cloud/")
# }

Run the code above in your browser using DataLab