File: fsmonitor_interface.go

package info (click to toggle)
incus 6.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 25,220 kB
  • sloc: sh: 16,810; ansic: 3,122; python: 460; makefile: 341; ruby: 51; sql: 50; lisp: 6
file content (8 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
package fsmonitor

// FSMonitor represents a filesystem monitor.
type FSMonitor interface {
	PrefixPath() string
	Watch(path string, identifier string, f func(path string, event string) bool) error
	Unwatch(path string, identifier string) error
}