Documentation
¶
Index ¶
Constants ¶
View Source
const MIN_INTERVAL = time.Millisecond * 20
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
Name string // Path to the file or directory
NewPath string // new path after rename operation
Op Op // File operation that triggered the event.
}
Event represents a single file system notification
type FsWatcher ¶
type FsWatcher interface {
Events() <-chan Event
Errors() <-chan error
Add(name string) (map[string]*fs.FileInfo, error)
Remove(name string) error
Close() error
Start(interval time.Duration) error
Stop()
AddShouldSkipHook(func(fi fs.FileInfo) bool)
SendEvent(ev Event) error
ScanComplete() <-chan struct{}
Scan()
}
FsWatcher is fsnotify-like interface for implementing file watchers
Click to show internal directories.
Click to hide internal directories.