cp

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2016 License: GPL-3.0, MIT Imports: 5 Imported by: 0

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).

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

func CopyAll(dst, src string) error

CopyAll copies the file or (recursively) the directory at src to dst. Permissions are preserved. dst must not already exist.

func CopyFile

func CopyFile(dst, src string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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