Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + func NewProgressBar(size int64, desc string, writer io.Writer) *progressbar.ProgressBar + type Config struct + Log log.FieldLogger + ProgressWriter func(fileInfo os.FileInfo) io.Writer + func CreateDownloadConfig(src, dst string, opts Options) (*Config, error) + func CreateUploadConfig(src []string, dst string, opts Options) (*Config, error) + func (c *Config) TransferFiles(ctx context.Context, sshClient *ssh.Client) error + type FileSystem interface + Chmod func(ctx context.Context, path string, mode os.FileMode) error + Chtimes func(ctx context.Context, path string, atime, mtime time.Time) error + Create func(ctx context.Context, path string, mode os.FileMode) (io.WriteCloser, error) + Mkdir func(ctx context.Context, path string, mode os.FileMode) error + Open func(ctx context.Context, path string) (io.ReadCloser, error) + ReadDir func(ctx context.Context, path string) ([]os.FileInfo, error) + Stat func(ctx context.Context, path string) (os.FileInfo, error) + Type func() string + type Options struct + PreserveAttrs bool + Recursive bool