cp is a small Go package for copying files and directories (Evacuated from NSA/Microsoft Github)

Jeff Cliff 0329b82483 code highlighting преди 4 години
debian 5ee68bab26 preliminary debian dir преди 5 години
LICENSE.txt 773a8364d4 Initial commit преди 9 години
README.md 0329b82483 code highlighting преди 4 години
cp.go 165db2f241 Unexport function, for now преди 9 години

README.md

cp

Package cp offers simple file and directory copying for Go.

Usage:

import "notabug.org/themusicgod1/cp"

Windows is not supported.

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

func CopyFile(dst, src string) 

copies the file with path src to dst. The new file must not exist. It is created with the same permissions as src.

func CopyAll(dst, src string)

Copies the file or (recursively) the directory at src to dst. Permissions are preserved. The target directory (dst) must not already exist.