Versions in this module Expand all Collapse all v1 v1.0.0 Dec 2, 2022 Changes in this version + const DOWNLOAD + const EXPLICIT + const FTP + const FTPS + const IMPLICIT + const KEEPALIVE + const NONE + const OFFLINE + const ONLINE + const SFTP + const TIMEOUT + const UPLOAD + func NewFtpParameters(host string, port int, user string, pass string, keepalive bool) *ftpParameters + func NewSftpParameters(host string, port int, user string, pass string, keepAlive bool) *sftpParameters + type Entity struct + Group string + LastMod string + Links int + Name string + Owner string + Perms *Permissions + Size int + type Ftp struct + State int + func (this *Ftp) Command(cmd string, code int) (res *FtpResponse, err error) + type FtpResponse struct + type Permission struct + Exe bool + Read bool + Write bool + type Permissions struct + Group *Permission + Owner *Permission + SGID bool + SUID bool + Sticky bool + Type string + Users *Permission + type SecureFtp struct + type Sftps struct + func New(proto int, param interface{}) (sftps *Sftps, err error) + func (this *Sftps) Connect() (res []*FtpResponse, err error) + func (this *Sftps) Download(local string, remote string) (res []*FtpResponse, len int64, err error) + func (this *Sftps) List(baseDir string) (res []*FtpResponse, list string, err error) + func (this *Sftps) Mkdir(p string) (res []*FtpResponse, err error) + func (this *Sftps) Quit() (res *FtpResponse, err error) + func (this *Sftps) Rename(old string, new string) (res []*FtpResponse, err error) + func (this *Sftps) Rmdir(p string) (res []*FtpResponse, err error) + func (this *Sftps) StringToEntities(raw string) (ents []*Entity, err error) + func (this *Sftps) Upload(local string, remote string) (res []*FtpResponse, len int64, err error)