spupload

command
Version: v0.0.0-...-3df2ee0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL