Versions in this module Expand all Collapse all v1 v1.0.1 Mar 31, 2022 Changes in this version + const DataSize + type EntryHandler func(e *ftp.Entry, currentPath string) error + type FileSource struct + type FtpClient struct + Ftp *ftp.ServerConn + Protocol string + Sftp *sftp.Client + Ssh *ssh.Client + func NewFtpClient() *FtpClient + func (this *FtpClient) Download(local, remote, file string) error + func (this *FtpClient) Finish() error + func (this *FtpClient) GetFile(path string) ([]string, error) + func (this *FtpClient) Handler(e *ftp.Entry, currentPath string) error + func (this *FtpClient) HandlerUpload(e *ftp.Entry, currentPath string) error + func (this *FtpClient) Init(protocol, ip, port, user, pass string) error + func (this *FtpClient) Rename(tmp, dst, file string) error + func (this *FtpClient) Upload(local, remote, file string) error + func (this *FtpClient) Walk(rootDir string) error + type FtpFile struct + FileName string + Path string + Size int + Type int + type Server struct + BackupPath string + IP string + LocalPath string + PassWord string + Port string + Protocol string + RemotePath string + RmtTmpPath string + TargetPath string + TempPath string + UserName string