blob: b06d12d3a2b383b0796e90f9a97dbcf85fef19b8 (
plain) (
tree)
|
|
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
}
|