funcs

package
v0.0.0-...-9aabb02 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PassWord = &survey.Password{Message: "Enter pass?"}

Functions

func ChangeFTPDirectory

func ChangeFTPDirectory(conn *ftp.ServerConn, directory string) error

func ConnectFTP

func ConnectFTP(addr, username, password string) (*ftp.ServerConn, error)

func CreateDir

func CreateDir(name string, dir string)

func DownloadFTPFile

func DownloadFTPFile(conn *ftp.ServerConn, fileName string, fileSize int64) error

func IsDirectory

func IsDirectory(entry *ftp.Entry) bool

func IsFile

func IsFile(entry *ftp.Entry) bool

func IsInfoFileEmpty

func IsInfoFileEmpty() (bool, error)

func ListFTPEntries

func ListFTPEntries(conn *ftp.ServerConn) ([]*ftp.Entry, error)

func PrintFTPEntries

func PrintFTPEntries(entries []*ftp.Entry)

func ReadCredentials

func ReadCredentials() (host, uname, pass string)

func SaveCredentials

func SaveCredentials(host, uname, pass string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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