explorer

package
v0.0.0-...-64fb7a0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpCreate = "Create"
	OpWrite  = "Write"
	OpRemove = "Remove"
	OpRename = "Rename"
)

Variables

This section is empty.

Functions

func Add

func Add(name string) error

func ChangeChan

func ChangeChan(name string) chan Event

func CopyDir

func CopyDir(src, dest string) error

CopyDir 复制目录

func CopyFile

func CopyFile(src, dest string) error

CopyFile 复制文件

func IsDir

func IsDir(filePath string) bool

IsDir 是否目录

func IsExist

func IsExist(filePath string) bool

IsExist 验证文件or目录是否存在

func MoveDir

func MoveDir(src, dest string) error

MoveDir 移动目录

func MoveFile

func MoveFile(src, dest string) error

MoveFile 移动文件

func Remove

func Remove(name string) error

Types

type Event

type Event struct {
	FileName string // 文件名
	OPType   string // 变更类型
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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