blob: b06d12d3a2b383b0796e90f9a97dbcf85fef19b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package types
// FSWatcher is a file system watcher
type FSWatcher interface {
Configure(string) error
Events() chan *FSEvent
// Adds a directory or file to the watcher
Add(string) error
// Removes a directory or file from the watcher
Remove(string) error
}
type FSOperation int
const (
FSCreate FSOperation = iota
FSRemove
FSRename
)
type FSEvent struct {
Operation FSOperation
Path string
}
|