lib/sinotify/notifier.rb
# some events we don't want to report (certain events are generated just from creating watches)
some events we don't want to report (certain events are generated just from creating watches)
some events we don ' t want to report ( certain events are generated just from creating watches )
def event_is_noise? prim_event, watch
        etypes_strings = prim_event.etypes.map{|e|e.to_s}.sort
        return true if ["close_nowrite", "isdir"].eql?(etypes_strings)
        return true if ["isdir", "open"].eql?(etypes_strings)
        return true if ["ignored"].eql?(etypes_strings)
        return true if ["delete", "isdir"].eql?(etypes_strings)
        return false
      end
def event_is_noise? prim_event , watch etypes_strings = prim_event . etypes . map { | e | e . to_s } . sort return true if [ "close_nowrite" , "isdir" ] . eql? ( etypes_strings ) return true if [ "isdir" , "open" ] . eql? ( etypes_strings ) return true if [ "ignored" ] . eql? ( etypes_strings ) return true if [ "delete" , "isdir" ] . eql? ( etypes_strings ) return false end
some events we don't want to report (certain events are generated just from creating watches)
some events we don ' t want to report ( certain events are generated just from creating watches )
# the simple act of creating a watch causes these to fire" # If the event is on a subdir of the directory specified in watch, don't send it because # there should be another even (on the subdir itself) that comes through, and this one # will be redundant. 
prim_event
watch