ftp

package
v0.0.0-...-91c7ab2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPathExist

func IsPathExist(file string) bool

Types

type FtpClient

type FtpClient struct {
	Password string
	// contains filtered or unexported fields
}

func NewFtpClient

func NewFtpClient(addr string, userName string, password string, mirrorDir string) (*FtpClient, error)

func (*FtpClient) Close

func (f *FtpClient) Close()

func (*FtpClient) Dial

func (f *FtpClient) Dial() error

func (*FtpClient) Mirror

func (f *FtpClient) Mirror(dir string, mirrorDir string) error

func (*FtpClient) Run

func (f *FtpClient) Run() error

func (*FtpClient) WriteFile

func (f *FtpClient) WriteFile(fileName string, r io.Reader) error

Jump to

Keyboard shortcuts

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