Learn R Programming

rdav (version 0.3.0)

ocs_modify_share: Modifies properties of a share

Description

If a parameter omitted or is NULL, then the coresponding property is not modified.

Usage

ocs_modify_share(
  req,
  id,
  password = NULL,
  permissions = NULL,
  public_upload = NULL,
  expire_date = NULL,
  label = NULL,
  note = NULL,
  send_mail = NULL,
  attributes = NULL
)

Value

data.frame with the share properties

Arguments

req

WebDAV request as returned by wd_connect

id

share id

password

optional password for link and e-mail shares

permissions

integer or char vector (1:read, 2:update, 4:create, 8:delete, 16:share), default is 1:read

public_upload

TRUE if public upload should be enabled

expire_date

expiration date as string in the format YYYY-MM-DD

label

label for the share

note

note for the share

send_mail

if TRUE the user is notified via e-mail

attributes

optional attributes

Details

Share permissions can be given as vector of integers or characters, e.g. c(1, 2, 8) or c("read", "update", "delete"), or as their sum or concatenation, e.g. 11 or "read,update,delete".

Examples

Run this code
if (FALSE) {
r <- wd_connect("https://example.com/remote.php/dav/files/johndoe")
ocs_modify_share(r, 12345, permissions = 31, expire_date = "2025-11-01")
}

Run the code above in your browser using DataLab