uc_file_merge

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MMerge = app_msg.Apply(&MsgMerge{}).(*MsgMerge)
)

Functions

This section is empty.

Types

type Merge

type Merge interface {
	Merge(from, to mo_path.DropboxPath, opts ...MergeOpt) error
}

func New

type MergeOpt

type MergeOpt func(opts *MergeOpts) *MergeOpts

func ClearEmptyFolder

func ClearEmptyFolder() MergeOpt

func DryRun

func DryRun() MergeOpt

func WithinSameNamespace

func WithinSameNamespace() MergeOpt

type MergeOpts

type MergeOpts struct {
	DryRun              bool
	WithinSameNamespace bool
	CleanEmptyFolder    bool
}

type MsgMerge

type MsgMerge struct {
	RemoveEmptyFolder    app_msg.Message
	RemoveDuplicatedFile app_msg.Message
	RemoveOldContent     app_msg.Message
	MoveFile             app_msg.Message
}

Jump to

Keyboard shortcuts

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