ftp

package
v0.0.0-...-b2b82d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
}

type Client

type Client struct {
	Addr string
	Port int
	Auth Auth
}

func (Client) FTPDownload

func (client Client) FTPDownload(filename, targetFilename string) (err error)

func (Client) FTPFilesList

func (client Client) FTPFilesList(in *SearchInput) (newEntries []*f.Entry, err error)

https://github.com/jlaffaye/ftp/blob/master/client_test.go <- simple tests

func (Client) Rename

func (client Client) Rename(path, target string) (err error)

type SearchInput

type SearchInput struct {
	Path   string
	Suffix string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL