fswatcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsEvent

type FsEvent struct {
	Path string // Relative path to the file or directory.
	Op   FsOp   // File operation that triggered the event.
}

FsEvent represents a single file system notification.

func (*FsEvent) String

func (this *FsEvent) String() string

type FsOp

type FsOp uint32
const (
	FS_CREATE FsOp = 1 << iota
	FS_REMOVE
	FS_WRITE
	FS_RENAME
	FS_CHMOD
)

func (FsOp) IsFsChmod

func (this FsOp) IsFsChmod() bool

func (FsOp) IsFsCreate

func (this FsOp) IsFsCreate() bool

func (FsOp) IsFsRemove

func (this FsOp) IsFsRemove() bool

func (FsOp) IsFsRename

func (this FsOp) IsFsRename() bool

func (FsOp) IsFsWrite

func (this FsOp) IsFsWrite() bool

func (FsOp) String

func (this FsOp) String() string

Jump to

Keyboard shortcuts

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