Registry / utility / otiai10-copy

otiai10-copy

JSON →
library1.14.1gogounverified

A Go library for copying files and directories recursively.

go get github.com/otiai10/copy
INSTALL
IMPORT
SIG · OTIAI10-COPY
O
otiai10-copy
utilitygov1.14.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

copy
github.com/otiai10/copy

Copies the 'src' directory to 'dst' recursively.

package main import ( "github.com/otiai10/copy" ) func main() { err := copy.Copy("src", "dst") if err != nil { panic(err) } }
Debug
Known issues
gotchaSymlinks are followed by default; use copy.Options to change behavior
fix
Pass copy.Options{OnSymlink: func(string) copy.SymlinkAction { return copy.Deep }} to handle symlinks
affects: all
Upgrade
Version history
1.14.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
otiai10-copy — go get otiai10-copy · libregistry