handler

package
v0.0.0-...-d4d3f2a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean() error

func Delete

func Delete(nums []int, infos []Info) error

func MoveFile

func MoveFile(from, to string) error

func PushFileArrayToTrash

func PushFileArrayToTrash(fileArray []string) error

func PushToTrash

func PushToTrash(path string) error

func RemoveFile

func RemoveFile(path string) error

func Restore

func Restore(nums []int, infos []Info) error

func SaveFileData

func SaveFileData(path string) error

Types

type FileInfo

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

func NewFileInfo

func NewFileInfo() *FileInfo

func (*FileInfo) BuildInfo

func (f *FileInfo) BuildInfo(path string) error

type Info

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

func GetTrashList

func GetTrashList(sortType, sortOrder string) ([]Info, error)

func ShowTable

func ShowTable(sortType, sortOrder string) ([]Info, error)

Jump to

Keyboard shortcuts

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