module Inotify
Defined in:
inotify.crinotify/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-petoem-inotify.cr-v1.0.3/src/inotify`).chomp.stringify }}
Class Method Summary
-
.watch(path : String, recursive : Bool = false, &block : Inotify::Event -> ) : Inotify::Watcher
All-in-one method to create inotify instance to watch one path.
-
.watcher(recursive : Bool = false) : Inotify::Watcher
Same as
Inotify::Watcher.new
.
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.
Same as Inotify::Watcher.new
.