Versions in this module Expand all Collapse all v0 v0.1.0 Jul 27, 2015 Changes in this version + var ErrCannotCopyDir = errors.New("cannot copy directory") + var ErrDirNotExists = errors.New("no such directory") + var ErrInvalidCopySource = errors.New("invalid copy source content") + var ErrNotDirectory = errors.New("not a directory") + func AssertsDirectory(path string) bool + func CanonicalTarNameForPath(p string) (string, error) + func HasTrailingPathSeparator(path string) bool + func PreserveTrailingDotOrSeparator(cleanedPath, originalPath string) string + func SpecifiesCurrentDir(path string) bool + func SplitPathDirEntry(localizedPath string) (dir, base string) + func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error) + type Archive io.ReadCloser + func PrepareArchiveCopy(srcContent ArchiveReader, srcInfo, dstInfo CopyInfo) (dstDir string, content Archive, err error) + func TarResource(sourcePath string) (content Archive, err error) + type ArchiveReader io.Reader + type CopyInfo struct + Exists bool + IsDir bool + Path string + func CopyInfoStatPath(path string, mustExist bool) (CopyInfo, error) + type TarOptions struct + ExcludePatterns []string + IncludeFiles []string + IncludeSourceDir bool + Name string + NoLchown bool