Versions in this module Expand all Collapse all v1 v1.0.1 Nov 16, 2019 Changes in this version + const FSPCommandBye + const FSPCommandChangePass + const FSPCommandDelDir + const FSPCommandDelFile + const FSPCommandErr + const FSPCommandGetDir + const FSPCommandGetFile + const FSPCommandGetPro + const FSPCommandGrabDone + const FSPCommandGrabFile + const FSPCommandInfo + const FSPCommandInstall + const FSPCommandLimit + const FSPCommandMakeDir + const FSPCommandRename + const FSPCommandSetPro + const FSPCommandStat + const FSPCommandTest + const FSPCommandUpload + const FSPCommandVersion + const FSPDirAdd + const FSPDirDel + const FSPDirGet + const FSPDirList + const FSPDirMkDir + const FSPDirOwner + const FSPDirReadme + const FSPDirRename + const FSPHSzie + const FSPMaxPacket + const FSPProBytes + const FSPSpace + const VERSION + type Error interface + Timeout func() bool + type File struct + func (f *File) Close() (err error) + func (f *File) Flush() (err error) + func (f *File) Read(buff []byte, size, count int) (done int, err error) + func (f *File) Write(buff []byte) (err error) + type Session struct + func NewSession(serverAddress, password string) (session *Session, err error) + func NewSessionWithConn(conn *net.UDPConn, serverAddress, password string) (session *Session, err error) + func (s *Session) CanUpload(fileName string) (err error) + func (s *Session) ChangePassword(newPassword string) (err error) + func (s *Session) Close() + func (s *Session) DownloadDirectory(remotePath, savePath string) (err error) + func (s *Session) DwonloadFile(remotePath, savePath string, retry int) (err error) + func (s *Session) GetProtecion(directory string) (protection uint8, err error) + func (s *Session) Mkdir(directory string) (err error) + func (s *Session) Readdir(dirpath string) (fi []os.FileInfo, err error) + func (s *Session) Remove(name string) (err error) + func (s *Session) RemoveAll(path string) (err error) + func (s *Session) Rename(oldpath, newpath string) (err error) + func (s *Session) ShowDir(dirpath string) (err error) + func (s *Session) Stat(name string) (info os.FileInfo, err error) + func (s *Session) UploadFile(localFile, remotePath string) (err error) + func (s *Session) Version() (version string) v1.0.0 Sep 21, 2019