Documentation ¶ Index ¶ func CleanRelativePath(rel string) (string, error) func SafeJoin(rootAbs, rel string) (string, error) type File type Options type Result func CopyFiles(root string, files []File, opts Options) (Result, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CleanRelativePath ¶ func CleanRelativePath(rel string) (string, error) func SafeJoin ¶ func SafeJoin(rootAbs, rel string) (string, error) Types ¶ type File ¶ type File struct { RelPath string Data []byte Mode os.FileMode } type Options ¶ type Options struct { DryRun bool Force bool } type Result ¶ type Result struct { Files []string } func CopyFiles ¶ func CopyFiles(root string, files []File, opts Options) (Result, error) Source Files ¶ View all Source files copytree.go Click to show internal directories. Click to hide internal directories.