gorecurcopy

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: MPL-2.0 Imports: 5 Imported by: 16

README

gorecurcopy

Build Status GoDoc Go Report Card Version

gorecurcopy copies directories recursively without external dependencies. Compatible with OSX, Linux, and Windows.

Example:

import (
	"github.com/plus3it/gorecurcopy"
)

...

err := gorecurcopy.CopyDirectory("directory", "new_directory")

Documentation

Overview

Package gorecurcopy provides recursive copying in Go (golang) with a minimum of extra packages. Original concept by Oleg Neumyvakin (https://stackoverflow.com/users/1592008/oleg-neumyvakin) and modified by Dirk Avery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

Copy copies a src file to a dst file where src and dst are regular files.

func CopyDirectory

func CopyDirectory(src, dst string) error

CopyDirectory recursively copies a src directory to a destination.

func CopySymLink(src, dst string) error

CopySymLink copies a symbolic link from src to dst.

Types

This section is empty.

Jump to

Keyboard shortcuts

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