ftp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(addr string, port string) *Connection

func (*Connection) Cmd

func (c *Connection) Cmd(exp int, format string, args ...interface{}) (code int, msg string, err error)

func (*Connection) Connect

func (c *Connection) Connect() error

func (*Connection) Download

func (c *Connection) Download(filename string, dest string) error

func (*Connection) NameList

func (c *Connection) NameList() ([]string, error)

todo: support argument to namelist e.g. *.ls

func (*Connection) Passive

func (c *Connection) Passive() (net.Conn, error)

func (*Connection) Quit

func (c *Connection) Quit() error

func (*Connection) Type

func (c *Connection) Type(t string) error

Jump to

Keyboard shortcuts

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