fsnotify

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbgFlagEvent = 1 << iota
	DbgFlagAll   = DbgFlagEvent
)

Variables

This section is empty.

Functions

func SetDebug

func SetDebug(dbgFlags int)

Types

type FSChanged

type FSChanged interface {
	FileChanged(name string)
	DirAdded(name string)
	EntryDeleted(name string, isDir bool)
}

type Ignore

type Ignore = func(name string, isDir bool) bool

type Watcher

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

func New

func New() Watcher

func (*Watcher) Close

func (p *Watcher) Close() error

func (Watcher) Run

func (p Watcher) Run(root string, fc FSChanged, ignore Ignore) error

Jump to

Keyboard shortcuts

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