copy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: BSD-2-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ReflinkNo = iota
	ReflinkAlways
	ReflinkAuto
)

Variables

This section is empty.

Functions

func File

func File(src, dest string, opt *Options) (written int64, err error)

File copies the file named in src to a file named in dest. It returns the number of bytes written and an error, if any. File uses buffered I/O and delegates to io.Copy to do the actual work. The copy behavior can be influenced by setting options in opt.

func HaveCoW

func HaveCoW() bool

Types

type Options

type Options struct {
	Force             bool
	Reflink           int
	RemoveDestination bool
	Progress          func(written, total int64) bool
	BufSize           int64
}

Jump to

Keyboard shortcuts

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