Versions in this module Expand all Collapse all v1 v1.1.2 Jan 9, 2022 Changes in this version + type Client struct + Host string + Password string + UserName string + func NewClient(user string, pass string, host string) *Client + func (c *Client) Download(filePath string) error + func (c *Client) DownloadFile(file *os.File) error + func (c *Client) DownloadWriter(writer io.Writer) error + func (c *Client) Upload(filePath string) error + func (c *Client) UploadFile(remoteFilepath string, file *os.File) error + func (c *Client) UploadReader(remoteFilepath string, source io.Reader) error + type Entry struct + Name string + Size uint64 + Time time.Time + Type EntryType + type EntryType int + const EntryTypeFile + const EntryTypeFolder + const EntryTypeLink + type FTPS struct + Debug bool + SendDone chan bool + TLSConfig tls.Config + func (ftps *FTPS) ChangeWorkingDirectory(path string) (err error) + func (ftps *FTPS) Connect(host string, port int, isImplicit bool) (err error) + func (ftps *FTPS) DeleteFile(path string) (err error) + func (ftps *FTPS) List() (entries []Entry, err error) + func (ftps *FTPS) Login(username, password string) (err error) + func (ftps *FTPS) MakeDirectory(path string) (err error) + func (ftps *FTPS) Noop() (err error) + func (ftps *FTPS) PrintWorkingDirectory() (directory string, err error) + func (ftps *FTPS) PutFile(remoteFilepath string, f *os.File) (err error) + func (ftps *FTPS) Quit() (err error) + func (ftps *FTPS) RemoveDirectory(path string) (err error) + func (ftps *FTPS) Rename(from, to string) error + func (ftps *FTPS) RetrieveFile(remoteFilepath string, file *os.File) (err error) + func (ftps *FTPS) RetrieveFileData(remoteFilepath string) (data []byte, err error) + func (ftps *FTPS) RetrieveWriter(remoteFilepath string, w io.Writer) (err error) + func (ftps *FTPS) SizeFile(path string) (res string, err error) + func (ftps *FTPS) StoreFile(remoteFilepath string, f *os.File) (err error) + func (ftps *FTPS) StoreReader(remoteFilepath string, r io.Reader) (err error)