Folders & Files upload
The sample shows how to arrange local directory upload to SharePoint document library.
The use-cases are:
- assets deployment pipelines
- documents migration
go build -o bin/spupload.exe ./samples/spupload/
./config/private.json with SAML auth credentials (or any other, but should be aligned with sources).
bin/spupload.exe -localFolder ./upload/source/folder -spFolder "Shared Documents"
-localFolderis a local folder to watch
-spFolderis SP folder to sync to
When applied changes are synced with SharePoint.
All flags description
go run ./samples/spupload/ -h
||string, Auth strategy (default "saml")|
||string, Config path (default "./config/private.json")|
||string, Local folder to watch|
||string, SP folder to sync to (default "Shared Documents")|
||int, a number of concurrent uploads (default 25)|
go run ./samples/spupload/ -localFolder ./samples/spupload/upload -concurrency 10