Skip to content

projectivetech/mruby-inotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published