Please teach me. I am a beginner.
I want to upload all the data of the local folder to the "General" folder of Sharepoint online(Folder A/files
, Folder A/Folder B/Folder C/files
etc.).
This code is Four arguments error.
$SubFolder = (($file.Directoryname).Replace($localFolder,'')).Replace('\','/')
[Microsoft.SharePoint.Client.File]::SaveBinaryDirect($script:context, $script:context.Url + "/" + $rootfolder.Name + "/" + $folderName + $SubFolder + "/" + $file.Name, $fs, $true)
$SubFolder
is /A etc.