copy

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoopRenameFunc = func(o storage.Object) string {
	if o == nil {
		return ""
	}
	return o.GetName()
}

Functions

func Infos

func Infos(chs []InfoProvider) error

Types

type InfoProvider

type InfoProvider struct {
	From storage.Folder
	To   storage.Folder

	SrcObj storage.Object
	// contains filtered or unexported fields
}

func BuildCopyingInfos

func BuildCopyingInfos(from storage.Folder, to storage.Folder, objects []storage.Object,
	filter func(storage.Object) bool, renameFunc func(object storage.Object) string) (infos []InfoProvider)

Jump to

Keyboard shortcuts

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