export_folder: Upload a folder from the local system to cloud

Description Usage Arguments Value Examples

View source: R/export_folder.R

Description

Write a local folder to the cloud, S3 or GCS

Usage

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

1
2
3
4
5
6
## Not run: 
flyio_set_datasource("gcs")
flyio_set_bucket("your-bucket-name")
export_folder("folder-local/", "folder-on-cloud/")

## End(Not run)

socialcopsdev/flyio documentation built on Feb. 15, 2020, 11:15 p.m.