move_file_or_folder: Move a File or Folder on the Cloud

View source: R/move_file_or_folder.R

move_file_or_folderR Documentation

Move a File or Folder on the Cloud

Description

Move a File or Folder on the Cloud

Usage

move_file_or_folder(
  path,
  path_target,
  overwrite = FALSE,
  user = nextcloud_user(),
  auth = nextcloud_auth(),
  dbg = TRUE,
  ...
)

Arguments

path

path to the file or folder to be moved

path_target

path to the target file or folder to be moved to

overwrite

whether to overwrite the file or folder in case that the file or folder already exists (default: FALSE)

user

user name, by default taken from the environment variable "NEXTCLOUD_USER".

auth

authentication header as provided by kwb.nextcloud:::nextcloud_auth

dbg

print debug messages (default: TRUE)

...

further arguments passed to kwb.nextcloud:::nextcloud_request

Value

return path_target of moved file/folder


KWB-R/kwb.nextcloud documentation built on June 8, 2022, 10:21 a.m.