Simple 'WebDAV' Client

A simple 'WebDAV' client that provides functions to fetch and send files or folders to servers using the 'WebDAV' protocol (see 'RFC' 4918 < https://www.rfc-editor.org/rfc/rfc4918>). Only a subset of the protocol is implemented (e.g. file locks are not yet supported).


CRAN rdav status badge R-CMD-check

Simple WebDAV client

Provides some functions to

  • download a file or a folder (recursively) from a WebDAV server
  • upload a file or a folder (recursively) to a WebDAV server
  • copy, move, delete files or folders on a WebDAV server
  • list directories on the WebDAV server

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

Installation

To install the stable version from CRAN please use

install.packages('rdav')

You can install the most recent development version from r-universe.dev

install.packages('rdav', 
     repos = c('https://gk-crop.r-universe.dev', 'https://cloud.r-project.org'))

Usage

You have to supply the URL to the WebDAV server and your username. Once you call wd_connect, you will be prompted for the password.

library(rdav)
r <- wd_connect("https://example.com/remote.php/dav/files/user", "user")

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

Create folder, upload and download data

wd_mkdir(r,"myfolder")
wd_upload(r, "testfile.R", "myfolder/testfile.R")
wd_download(r, "myfolder", "d:/data/fromserver")

Share files via public link or e-mail

ocs_create_share_link(r, "myfolder")
ocs_create_share_mail(r, "myfolder", "[email protected]")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rdav")

0.3.0 by Gunther Krauss, 10 months ago


https://github.com/gk-crop/rdav


Report a bug at https://github.com/gk-crop/rdav/issues


Browse source code at https://github.com/cran/rdav


Authors: Gunther Krauss [aut, cre]


Documentation:   PDF Manual  


GPL-2 license


Imports httr2, xml2

Suggests utils, keyring, knitr, rmarkdown, testthat


See at CRAN