Documentation
¶
Overview ¶
Package ftp provides an FTP client that implements remote.Client.
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) DeleteFile(remotePath string) error
- func (c *Client) DownloadFile(remotePath, localPath string) error
- func (c *Client) ReadFile(remotePath string) ([]byte, error)
- func (c *Client) Stat(remotePath string) (os.FileInfo, error)
- func (c *Client) UploadFile(localPath, remotePath string) error
- func (c *Client) WalkFiles(remoteRoot string, fn func(string) error) error
- func (c *Client) WriteFile(remotePath string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps an FTP connection.
func (*Client) DeleteFile ¶
DeleteFile removes a file on the remote host.
func (*Client) DownloadFile ¶
DownloadFile copies a remote file to a local path.
func (*Client) UploadFile ¶
UploadFile copies a local file to a remote path.
Click to show internal directories.
Click to hide internal directories.