upload_sp_item()
wraps the upload_folder
and upload_file
method for
ms_drive
objects.
Usage
upload_sp_item(
file = NULL,
dest,
...,
src = NULL,
overwrite = FALSE,
drive_name = NULL,
drive_id = NULL,
drive = NULL,
blocksize = 327680000,
recursive = FALSE,
parallel = FALSE,
call = caller_env()
)
upload_sp_items(file = NULL, dest, ..., src = NULL, call = caller_env())
Arguments
- file
Path for file or directory to upload. Optional if
src
is supplied.- dest
Destination on SharePoint for file to upload. SharePoint folder URLs are supported.
- ...
Additional parameters passed to
get_sp_site()
orMicrosoft365R::get_sharepoint_site()
.- src
Data source path passed to
upload_folder
orupload_file
method. Defaults toNULL
and set to use file value by default.- overwrite
If
FALSE
(default), error if an item with the name specified infile
orsrc
already exists at the specified destination. IfTRUE
, overwrite any existing items with the same name. The latter is the default for theupload_file
method.- drive_name, drive_id
SharePoint drive name or ID.
- drive
A
ms_drive
object. If drive is supplied,drive_name
,site_url
, and any additional parameters passed to...
are ignored.- blocksize, recursive, parallel
Additional parameters passed to
upload_folder
orupload_file
method forms_drive
objects.- call
The execution environment of a currently running function, e.g.
caller_env()
. The function will be mentioned in error messages as the source of the error. See thecall
argument ofabort()
for more information.