Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Recursively watch subdirectories with the inotify backend.

  • Loading branch information...
commit f4b896724e0bf102a162001840ca2975eab21b02 1 parent 9528c5c
@nex3 nex3 authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/fssm/backends/inotify.rb
  2. +1 −1  lib/fssm/support.rb
View
2  lib/fssm/backends/inotify.rb
@@ -5,7 +5,7 @@ def initialize
end
def add_handler(handler, preload=true)
- @notifier.watch(handler.path.to_s, :attrib, :modify, :create,
+ @notifier.watch(handler.path.to_s, :recursive, :attrib, :modify, :create,
:delete, :delete_self, :moved_from, :moved_to, :move_self) do |event|
path = FSSM::Pathname.for(event.absolute_name)
path = path.dirname unless event.name == "" # Event on root directory
View
2  lib/fssm/support.rb
@@ -41,7 +41,7 @@ def rb_inotify?
require 'rb-inotify'
if defined?(INotify::VERSION)
version = INotify::VERSION
- version[0] > 0 || version[1] > 5 || version[2] >= 1
+ version[0] > 0 || version[1] >= 6
end
rescue LoadError
false
Please sign in to comment.
Something went wrong with that request. Please try again.