Documentation ¶
Overview ¶
Package inotify provides an interface to the Linux inotify(7) API for monitoring filesystem events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { unix.InotifyEvent // Name within watched path if it's a directory Name string // Watched path associated with the event Path string }
Event represents an inotify event
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents an initialized inotify instance
func (*Instance) AddWatch ¶
AddWatch adds the given path to the inotify instance's watch list for events specified in the given mask. If the path is already being watched, the existing watch is modified.
func (*Instance) Close ¶
func (is *Instance) Close()
Close the inotify instance and allow the kernel to free its associated resources. All associated watches are automatically freed.
func (*Instance) RemoveWatch ¶
RemoveWatch removes the given path from the inotify instance's watch list.
Click to show internal directories.
Click to hide internal directories.