Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

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

About

inotify bindings for mruby

Resources

Releases

No releases published
You can’t perform that action at this time.