module Inotify

Defined in:

inotify.cr
inotify/event.cr
inotify/settings.cr
inotify/version.cr
inotify/watcher.cr

Constant Summary

DEFAULT_WATCH_FLAG = ((((LibInotify::IN_MOVE | LibInotify::IN_MOVE_SELF) | LibInotify::IN_MODIFY) | LibInotify::IN_CREATE) | LibInotify::IN_DELETE) | LibInotify::IN_DELETE_SELF
Log = ::Log.for("inotify")
VERSION = {{ (`shards version /srv/crystaldoc.info/github-xtokio-inotify-master/src/inotify`).chomp.stringify }}

Class Method Summary

Class Method Detail

def self.watch(path : String, recursive : Bool = false, &block : Inotify::Event -> ) : Inotify::Watcher #

All-in-one method to create inotify instance to watch one path.


[View source]
def self.watcher(recursive : Bool = false) : Inotify::Watcher #

[View source]