Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
CopyFile copies a file from source to destination, using hardlinks if it can ignores Include/Exclude patterns, as referencing a file copy directly is expected to be wanted based on https://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file-in-golang
func CopySymLink ¶
Types ¶
type Config ¶
type Config struct { // IncludePatterns are golang file globs for files to include in the copy IncludePatterns []string // ExcludePatterns are golang file globs for files to exclude that matched an include pattern ExcludePatterns []string // Source is the base directory to copy from Source string // Destination is the bast directory to copy to Destination string }
Click to show internal directories.
Click to hide internal directories.