spupload

command
v0.0.0-...-8ec3e8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 10 Imported by: 0

README

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

Build

go build -o bin/spupload.exe ./samples/spupload/

Start process

Create ./config/private.json with SAML auth credentials (or any other, but should be aligned with sources).

Run:

bin/spupload.exe -localFolder ./upload/source/folder -spFolder "Shared Documents"

Where:

  • -localFolder is a local folder to watch
  • -spFolder is SP folder to sync to

When applied changes are synced with SharePoint.

All flags description

go run ./samples/spupload/ -h
Flag Description
-strategy string, Auth strategy (default "saml")
-config string, Config path (default "./config/private.json")
-localFolder string, Local folder to watch
-spFolder string, SP folder to sync to (default "Shared Documents")
-concurrency int, a number of concurrent uploads (default 25)

Documentation

Overview

go run ./samples/spupload/ -localFolder ./samples/spupload/upload -concurrency 10

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL