box_ftp_upload: Box FTP Upload

View source: R/box.R

box_ftp_uploadR Documentation

Box FTP Upload

Description

Box FTP Upload

Usage

box_ftp_upload(file, path, user, pass, ...)

Arguments

file

name or path of the local file to be uploaded.

path

the path to which the content is to be uploaded.

user

Box username (i.e., WashU email)

pass

unique password for external applications. Created at https://wustl.app.box.com/account

...

additional arguments passed to RCurl::ftpUpload()

Value

The result of the curlPerform call.

References

https://wustl.app.box.com/services/box_ftp_server/

Examples

## Not run: 
file <- tempfile("box_ftp_upload_test", fileext = ".txt")
writeLines(c(
  "box_ftp_upload()",
  sprintf("uploaded this at %s.", Sys.time())
), file)
path <- file.path("test_directory", basename(file))
user <- Sys.getenv("WUSTL_BOX_USER")
pass <- Sys.getenv("WUSTL_BOX_PASS")
box_ftp_upload(file, path, user, pass)

## End(Not run)


RoeLabWustl/roelabr documentation built on Aug. 27, 2022, 9:57 a.m.