Learn R Programming

rdav (version 0.3.0)

wd_setwd: Set working directory

Description

If the directory path starts with a forward slash, then it is set from the WebDAV's root directory. Otherwise it's set in the current directory.

Usage

wd_setwd(req, directory)

Value

modified request

Arguments

req

request handle obtained from wd_connect

directory

WebDAV directory

Details

If the directory does not exist, then the request is not modified.

Notice: One has to (re)assign the returned request, as it is not modified in place.

Examples

Run this code
if (FALSE) {
req <- wd_setwd(req, "/maindir")
req <- wd_setwd(req, "subdir")
req <- wd_setwd(req, "/othermain")
}

Run the code above in your browser using DataLab