Categorygithub.com/cespare/cp
modulepackage
1.1.1
Repository: https://github.com/cespare/cp.git
Documentation: pkg.go.dev

# README

cp

GoDoc

cp is a small Go package for copying files and directories.

The API may change because I want to add some options in the future (for merging with existing dirs).

It does not currently handle Windows specifically (I think it may require some special treatment).

# Functions

CopyAll copies the file or (recursively) the directory at src to dst.
CopyAllOverwrite is like CopyAll except that it recursively overwrites any existing directories or files.
CopyFile copies the file at src to dst.
CopyFileOverwrite is like CopyFile except that it overwrites dst if it already exists.