Wrapper around the $create_folder()
method from Microsoft365R::ms_drive
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.
Examples
if (FALSE) { # interactive()
# Set site/drive defaults
sp_defaults("Data Analytics")
# Create a folder
sp_create_folder("new/folder")
}