inotify bindings for mruby
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Latest commit cd00265 Jan 12, 2018
Permalink
Failed to load latest commit information.
mrblib
src
README.md
mrbgem.rake

README.md

mruby-inotify

inotify bindings for mruby.

Usage

notifier = Inotify::Notifier.new

notifier.watch('/home', :all_events) do |event|
  puts event.inspect
end

# .process blocks until events are available
notifier.process while true

Or, to watch a directory tree:

notifier = Inotify::RecursiveNotifier.new

notifier.rwatch('/home', :all_events) do |event|
  puts event.inspect
end

notifier.process while true