Versions in this module Expand all Collapse all v1 v1.0.0 Jun 27, 2018 Changes in this version + const Status452 + const StatusAboutToSend + const StatusActionAborted + const StatusAlreadyOpen + const StatusBadArguments + const StatusBadCommand + const StatusBadFileName + const StatusBadSequence + const StatusCanNotOpenDataConnection + const StatusClosing + const StatusClosingDataConnection + const StatusCommandNotImplemented + const StatusCommandOK + const StatusDataConnectionOpen + const StatusDirectory + const StatusEnteringAuth + const StatusExceededStorage + const StatusExtendedPassiveMode + const StatusFile + const StatusFileActionIgnored + const StatusFileUnavailable + const StatusHelp + const StatusHostUnavailable + const StatusInitiating + const StatusInvalidCredentials + const StatusLoggedIn + const StatusLoggedOut + const StatusLoginNeedAccount + const StatusLogoutAck + const StatusLongPassiveMode + const StatusName + const StatusNotAvailable + const StatusNotImplemented + const StatusNotImplementedParameter + const StatusNotLoggedIn + const StatusPageTypeUnknown + const StatusPassiveMode + const StatusPathCreated + const StatusReady + const StatusReadyMinute + const StatusRequestFilePending + const StatusRequestedFileActionOK + const StatusRestartMarker + const StatusStorNeedAccount + const StatusSystem + const StatusTransfertAborted + const StatusUserOK + type Entry struct + Name string + Size uint64 + Time time.Time + Type EntryType + type EntryType int + const EntryTypeFile + const EntryTypeFolder + const EntryTypeLink + type Response struct + func (r *Response) Close() error + func (r *Response) Read(buf []byte) (int, error) + func (r *Response) SetDeadline(t time.Time) error + type ServerConn struct + DisableEPSV bool + func Connect(addr string) (*ServerConn, error) + func Dial(addr string) (*ServerConn, error) + func DialTimeout(addr string, timeout time.Duration) (*ServerConn, error) + func (c *ServerConn) AuthTLS() (err error) + func (c *ServerConn) ChangeDir(path string) error + func (c *ServerConn) ChangeDirToParent() error + func (c *ServerConn) CurrentDir() (string, error) + func (c *ServerConn) Delete(path string) error + func (c *ServerConn) FileSize(path string) (int64, error) + func (c *ServerConn) List(path string) (entries []*Entry, err error) + func (c *ServerConn) Login(user, password string) error + func (c *ServerConn) Logout() error + func (c *ServerConn) MakeDir(path string) error + func (c *ServerConn) NOOP() (err error) + func (c *ServerConn) NameList(path string) (entries []string, err error) + func (c *ServerConn) NoOp() error + func (c *ServerConn) ProtTLS() (err error) + func (c *ServerConn) Quit() error + func (c *ServerConn) RemoveDir(path string) error + func (c *ServerConn) RemoveDirRecur(path string) error + func (c *ServerConn) Rename(from, to string) error + func (c *ServerConn) Retr(path string) (*Response, error) + func (c *ServerConn) RetrFrom(path string, offset uint64) (*Response, error) + func (c *ServerConn) Stor(path string, r io.Reader) error + func (c *ServerConn) StorFrom(path string, r io.Reader, offset uint64) error