files

package
v0.0.0-...-3b1d31a Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListWithoutDetails = 0
	ListWithDetails    = 1
)
View Source
const (
	GetFileFromClient = 1
	SendFileToClient  = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileType

type FileType uint8
const (
	TypeUnknown     FileType = 0
	TypeDir         FileType = 1
	TypeFile        FileType = 2
	TypeCharDevice  FileType = 3
	TypeBlockDevice FileType = 4
	TypeNamedPipe   FileType = 5
	TypeSymlink     FileType = 6
	TypeSocket      FileType = 7
)

type Files

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

func NewFiles

func NewFiles() *Files

func (*Files) Handle

func (f *Files) Handle(ctx context.Context, readWriter io.ReadWriter) error

type Operation

type Operation uint8
const (
	FileSend   Operation = 3
	ReadDir    Operation = 4
	MakeDir    Operation = 5
	FileMove   Operation = 6
	FileRemove Operation = 7
	FileInfo   Operation = 8
	FileChmod  Operation = 9
)

Jump to

Keyboard shortcuts

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