copy

package
v0.0.0-...-5989d0e Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(srcDir string, dstDir string) (err error)

Dir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, but destination directory must *not* exist. Symlinks are ignored and skipped.

func File

func File(sourceFile, dstFile string) (err error)

File copies the contents of the file named sourceFile to the file named by dstFile. The file will be created if it does not already exist. If the destination file exists, all its contents will be replaced by the contents of the source file. The file mode will be copied from the source and the copied data is synced/flushed to stable storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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