Documentation
¶
Index ¶
- func CopyFile(src, dst string, fileMode os.FileMode) error
- func CopyToTempDir(root string) (string, *errorwrapper.Wrapper)
- func Do(isClearBeforeCopy bool, src, dst string) *errorwrapper.Wrapper
- func DoOptions(src, dst string, options Options) *errorwrapper.Wrapper
- func DoSimple(src, dst string) error
- type Copier
- type Instruction
- type Instructions
- type Options
- type SourceDestination
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyToTempDir ¶ added in v0.2.9
func CopyToTempDir(root string) (string, *errorwrapper.Wrapper)
CopyToTempDir copies everything from root to a random tmp directory and returns the tmp root path
Types ¶
type Copier ¶
type Copier struct {
// contains filtered or unexported fields
}
func NewCopierUsingInstruction ¶
func NewCopierUsingInstruction( instruction Instruction, ) *Copier
func (*Copier) Copy ¶
func (it *Copier) Copy() *errorwrapper.Wrapper
type Instruction ¶
type Instruction struct { SourceDestination Options // contains filtered or unexported fields }
func (*Instruction) Clone ¶ added in v0.2.9
func (it *Instruction) Clone() *Instruction
func (*Instruction) Copier ¶ added in v0.2.9
func (it *Instruction) Copier() *Copier
func (*Instruction) Run ¶
func (it *Instruction) Run() *errorwrapper.Wrapper
type Instructions ¶
type Instructions struct { PathMapping []SourceDestination Options }
type Options ¶
type Options struct { IsSkipOnExist bool IsRecursive bool IsMove bool IsClearDestination bool IsUseShellOrCmd bool IsNormalize bool IsExpandVar bool }
func NewDefaultOptions ¶ added in v0.2.9
func NewDefaultOptions() Options
type SourceDestination ¶
type SourceDestination struct {
Source, Destination string
}
Click to show internal directories.
Click to hide internal directories.