ftp

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 11 Imported by: 2

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()

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()

func (*Connection) Type

func (c *Connection) Type(t string)

Jump to

Keyboard shortcuts

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