Documentation ¶
Overview ¶
Package cp offers simple file and directory copying for Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyAll ¶
CopyAll copies the file or (recursively) the directory at src to dst. Permissions are preserved. The target directory must not already exist.
func CopyAllOverwrite ¶ added in v1.1.0
CopyAllOverwrite is like CopyAll except that it recursively overwrites any existing directories or files.
func CopyFile ¶
CopyFile copies the file at src to dst. The new file must not exist. It is created with the same permissions as src.
func CopyFileOverwrite ¶ added in v1.1.0
CopyFileOverwrite is like CopyFile except that it overwrites dst if it already exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.