Versions in this module Expand all Collapse all v0 v0.19.4 Oct 30, 2025 Changes in this version type Opt + func WithGitignore() Opt v0.19.3 Oct 23, 2025 Changes in this version + func AllowWildcards(ci *CopyInfo) + func AllowXAttrErrors(ci *CopyInfo) + func Chown(p string, old *User, fn Chowner) error + func Copy(ctx context.Context, srcRoot, src, dstRoot, dst string, opts ...Opt) error + func GetLinkInfo(fi os.FileInfo) (uint64, bool) + func MkdirAll(path string, perm os.FileMode, user Chowner, tm *time.Time) error + func ResolveWildcards(root, src string, followLinks bool) ([]string, error) + func StatAtime(st *syscall.Stat_t) syscall.Timespec — darwin/amd64, linux/amd64 + func StatMtime(st *syscall.Stat_t) syscall.Timespec — darwin/amd64, linux/amd64 + func Utimes(p string, tm *time.Time) error + func WithCopyInfo(ci CopyInfo) func(*CopyInfo) + type Chowner func(*User) (*User, error) + type CopyInfo struct + AllowWildcards bool + AlwaysReplaceExistingDestPaths bool + BaseCopyPath string + ChangeFunc fsutil.ChangeFunc + Chown Chowner + CopyDirContents bool + ExcludePatterns []string + FollowLinks bool + IncludePatterns []string + Mode *int + Only map[string]struct{} + UseGitignore bool + Utime *time.Time + XAttrErrorHandler XAttrErrorHandler + type Opt func(*CopyInfo) + func WithChangeNotifier(fn fsutil.ChangeFunc) Opt + func WithChown(uid, gid int) Opt + func WithExcludePattern(excludePattern string) Opt + func WithIncludePattern(includePattern string) Opt + func WithXAttrErrorHandler(h XAttrErrorHandler) Opt + type User struct + GID int + SID string + UID int + type XAttrErrorHandler func(dst, src, xattrKey string, err error) error