Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

notabug.org/themusicgod1/cp

Package Overview
Dependencies
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notabug.org/themusicgod1/cp

Go Modules
Version
v0.1.0
Version published
Created
Source

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.

FAQs

Package last updated on 08 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts