Upload a local folder to SharePoint

export_sharepoint_folder(local_folder, site, drive, dest_path = NULL)

Arguments

local_folder

Path to the local folder to upload

site

SharePoint site name (e.g. "Rail")

drive

SharePoint drive name (e.g. "RailStats")

dest_path

Destination path in SharePoint drive (e.g. "Reports/July2025"). Defaults to NULL, which will put the folder in the same location as it is locally.