Discover Packages
github.com/puengel/copy
package
module
Version:
v0.0.0-...-9359aef
Opens a new window with list of versions in this module.
Published: Feb 13, 2019
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
Documentation
¶
Copy copies src to dest, doesn't matter if src is a directory or a file
err := Copy("testdata/example", "testdata.copy/example")
fmt.Println("Error:", err)
info, _ := os.Stat("testdata.copy/example")
fmt.Println("IsDir:", info.IsDir())
Output:
Error: <nil>
IsDir: true
Perm copies src to dest, doesn't matter if src is a directory of a file.
All directories permissions will be set to destPerm.
All file permissions will be set to filePerm.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.