package
0.0.2
Repository: https://github.com/yubo/golib.git
Documentation: pkg.go.dev

# README

This is a fork of golang.org/x/exp/inotify before it was deleted.

Please use gopkg.in/fsnotify.v0 instead.

For updates, see: https://fsnotify.org/

# 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.