Learn R Programming

rdav (version 0.3.0)

wd_upload: Uploads a file or directory to WebDAV

Description

Directories are uploaded recursively. If the source is a file and the target a directory, then the file is uploaded into the directory. If the target is omitted, then the file or directory name (basename) will be used.

Usage

wd_upload(req, source, target = "")

Value

vector of uploaded files (invisibly)

Arguments

req

request handle obtained from wd_connect

source

path to local file or directory

target

path to remote file or directory, if omitted the file or directory name will be used, if source is a file and target a directory then the file will be put into the target directory

Examples

Run this code
if (FALSE) {

wd_upload(r, "d:/data/weather", "weatherfiles")
wd_upload(r, "d:/data/abc.txt", "test/xyz.txt")
wd_upload(r, "d:/data/abc.txt", "test") # uploaded file will be test/abc.txt

}

Run the code above in your browser using DataLab