ftp

package
v0.0.0-...-26e13c2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MoveRune    = 'm'
	DeleteRune  = 'd'
	RefreshRune = 'r'
	BackRune    = 'b'
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

Types

type DirEntry

type DirEntry struct {
	Path string
	Info FileInfo
}

type FS

type FS interface {
	Getwd() (string, error)
	Walk(string, bool) func(func(DirEntry) bool)
	Open(string, int) (io.ReadWriteCloser, error)
	Mkdir(string) error
	Remove(string) error
	Stat(string) (os.FileInfo, error)
}

type FSView

type FSView struct {
	// contains filtered or unexported fields
}

type FileInfo

type FileInfo interface {
	Name() string
	IsDir() bool
}

type LocalFS

type LocalFS struct {
}

func (LocalFS) Getwd

func (fs LocalFS) Getwd() (string, error)

func (LocalFS) Mkdir

func (fs LocalFS) Mkdir(p string) error

func (LocalFS) Open

func (fs LocalFS) Open(filepath string, flag int) (io.ReadWriteCloser, error)

func (LocalFS) Remove

func (fs LocalFS) Remove(p string) error

func (LocalFS) Stat

func (fs LocalFS) Stat(p string) (os.FileInfo, error)

func (LocalFS) Walk

func (fs LocalFS) Walk(p string, r bool) func(func(DirEntry) bool)

type SftpFS

type SftpFS struct {
	// contains filtered or unexported fields
}

func (SftpFS) Getwd

func (fs SftpFS) Getwd() (string, error)

func (SftpFS) Mkdir

func (fs SftpFS) Mkdir(p string) error

func (SftpFS) Open

func (fs SftpFS) Open(p string, flag int) (io.ReadWriteCloser, error)

func (SftpFS) Remove

func (fs SftpFS) Remove(p string) error

func (SftpFS) Stat

func (fs SftpFS) Stat(p string) (os.FileInfo, error)

func (SftpFS) Walk

func (fs SftpFS) Walk(p string, r bool) func(func(DirEntry) bool)

Jump to

Keyboard shortcuts

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