Versions in this module Expand all Collapse all v0 v0.0.2 Nov 28, 2023 Changes in this version + var ErrNotDir = errors.New("not a directory") + var ErrRootIsNotDir = errors.New("root is not a directory") + func NewErrNotDir(path string) error + func Sync(dst, src string) error + type Root struct + FileTypes []fs.FileMode + Path string + Patterns []string + func (r *Root) FindFiles() ([]string, error) + func (r *Root) FindFilesContext(ctx context.Context) ([]string, error) + func (r *Root) FindFilesFSContext(ctx context.Context, fsys fs.FS) ([]string, error) + type Roots struct + Destination string + FileTypes []fs.FileMode + Patterns []string + Source string + func (r *Roots) Dst() []string + func (r *Roots) FindFiles() error + func (r *Roots) FindFilesContext(ctx context.Context) error + func (r *Roots) Src() []string + type Syncer struct + Dst string + Src string + func (s *Syncer) Sync() error