fsnotify

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileNameEndingWithSeparator

func GetFileNameEndingWithSeparator(path string) string

Types

type Event

type Event struct {
	Name string
	Op   Op
}

type Op

type Op fsnotify.Op
const (
	Create Op = Op(fsnotify.Create)
	Remove Op = Op(fsnotify.Remove)
	Write  Op = Op(fsnotify.Write)
	Rename Op = Op(fsnotify.Rename)

	All Op = Create | Remove | Write | Rename
)

func (*Op) Has

func (e *Op) Has(h Op) bool

func (*Op) String

func (e *Op) String() string

type Watcher

type Watcher struct {
	Events <-chan Event
	Errors <-chan error
	// contains filtered or unexported fields
}

func NewWatcherRecursive

func NewWatcherRecursive(rootPath string) (*Watcher, error)

func (*Watcher) Close

func (w *Watcher) Close() error

Jump to

Keyboard shortcuts

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