package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# README

# Functions

NewWatcher creates and returns a new inotify instance using inotify_init(2).

# Constants

InAccess : File was accessed.
InAllEvents : Bit mask for all notify events.
InAttrib : Metadata changed.
InClose : Equates to IN_CLOSE_WRITE | IN_CLOSE_NOWRITE.
InCloseNowrite : File or directory not opened for writing was closed.
InCloseWrite : File opened for writing was closed.
InCreate : File/directory created in watched directory.
InDelete : File/directory deleted from watched directory.
InDeleteSelf : Watched file/directory was itself deleted.
InDontFollow : Don't dereference pathname if it is a symbolic link.
InIgnored : Watch was removed explicitly or automatically.
InIsdir : Subject of this event is a directory.
InModify : File was modified.
InMove : Equates to IN_MOVED_FROM | IN_MOVED_TO.
InMovedFrom : Generated for the directory containing the old filename when a file is renamed.
InMovedTo : Generated for the directory containing the new filename when a file is renamed.
InMoveSelf : Watched file/directory was itself moved.
InOneshot : Monitor the filesystem object corresponding to pathname for one event, then remove from watch list.
InOnlydir : Watch pathname only if it is a directory.
InOpen : File or directory was opened.
InQOverflow : Event queue overflowed.
InUnmount : Filesystem containing watched object was unmounted.

# Structs

Event represents a notification.
Watcher represents an inotify instance.