rdav: rdav: Interchange Files With 'WebDAV' Servers

rdavR Documentation

rdav: Interchange Files With 'WebDAV' Servers

Description

Provides functions to interchange files with WebDAV servers

Details

  • download a file or a directory (recursively) from a WebDAV server

  • upload a file or a directory (recursively) to a WebDAV server

  • copy, move, delete files or directories on a WebDAV server

  • list directories on the WebDAV server

Notice: when uploading or downloading files, they are overwritten without any warnings.

Author(s)

Gunther Krauss

See Also

Useful links:

Examples

## Not run: 
# establish a connection, you will be asked for a password
r <- wd_connect("https://example.com/remote.php/webdav/","exampleuser")

# show files / directoriess in main directory
wd_dir(r)

# lists 'subdir', returns a dataframe
wd_dir(r, "subdir", as_df = TRUE)

# create directory 'mydirectory' on the server
wd_mkdir(r,"mydirectory")

# upload the local file testfile.R to the subdirectory 'mydirectory'
wd_upload(r, "testfile.R", "mydirectory/testfile.R")

# download content of 'mydirectory' from the server and
# store it in 'd:/data/fromserver' on your computer
wd_download(r, "mydirectory", "d:/data/fromserver")


## End(Not run)


rdav documentation built on Oct. 15, 2025, 3 p.m.