Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{ OnSymlink: func(string) SymlinkAction { return Shallow }, Skip: func(string) bool { return false }, }
DefaultOptions by default.
Functions ¶
Types ¶
type Options ¶ added in v1.1.0
type Options struct { // OnSymlink can specify what to do on symlink OnSymlink func(p string) SymlinkAction // Skip can specify which files should be skipped Skip func(src string) bool }
Options specifies optional actions on copying.
type SymlinkAction ¶ added in v1.1.0
type SymlinkAction int
SymlinkAction represents what to do on symlink.
const ( // Deep creates hard-copy of contents. Deep SymlinkAction = iota // Shallow creates new symlink to the dest of symlink. Shallow // Skip does nothing with symlink. Skip )
Click to show internal directories.
Click to hide internal directories.