sp_create_folder {tntpr} | R Documentation |
Create Sharepoint Folder
Description
Wrapper around the $create_folder()
method from Microsoft365R::ms_drive
Usage
sp_create_folder(folder_path, site = NULL, drive = NULL)
Arguments
folder_path |
Path to the new folder |
site |
Site identifier. Can be the site name, id, URL, or an ms_site object. If no site identifier is provided, uses the stored default site if it exists. |
drive |
Drive identifier. Can be the drive name, id, or an ms_drive object. If site is provided but drive is not, uses the first drive of the provided site. If neither is provided, uses the stored default drive if it exists. |
Value
returns folder_path
invisibly
Examples
# Set site/drive defaults
sp_defaults("Data Analytics")
# Create a folder
sp_create_folder("new/folder")
[Package tntpr version 1.2.1 Index]