Documentation ¶
Index ¶
- type Client
- func (client *Client) ChangeDir(path string) error
- func (client *Client) ChangeDirToParent() error
- func (client *Client) CurrentDir() (string, error)
- func (client *Client) Delete(path string) error
- func (client *Client) DownFile(serverPath, destPath string) error
- func (client *Client) FileSize(path string) (int64, error)
- func (client *Client) List(path string) (filesData []FileData, err error)
- func (client *Client) Login() error
- func (client *Client) Logout() error
- func (client *Client) MakeDir(path string) error
- func (client *Client) NameList(path string) ([]string, error)
- func (client *Client) Quit() error
- func (client *Client) RemoveDir(path string) error
- func (client *Client) RemoveDirRecur(path string) error
- func (client *Client) Rename(from, to string) error
- func (client *Client) UploadFile(srcFullPath, serverPath string) error
- type Config
- type FileData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 客户端连接
func (*Client) ChangeDirToParent ¶
ChangeDirToParent 将当前目录更改为父目录。这类似于对ChangeDir的调用,路径设置为“..”
func (*Client) RemoveDirRecur ¶
RemoveDirRecur ..
func (*Client) UploadFile ¶
UploadFile 上传本地文件到服务器
Click to show internal directories.
Click to hide internal directories.