lib/sinotify/notifier.rb
# Remove the watch associated with the watch_descriptor passed in
Remove the watch associated with the watch_descriptor passed in
Remove the watch associated with the watch_descriptor passed in
def remove_watch(watch_descriptor, prim_remove = false)
        if watches[watch_descriptor.to_s]
          self.watches.delete(watch_descriptor.to_s)
          self.prim_notifier.rm_watch(watch_descriptor.to_i) if prim_remove
        end
      end
def remove_watch ( watch_descriptor , prim_remove = false ) if watches [ watch_descriptor . to_s ] self . watches . delete ( watch_descriptor . to_s ) self . prim_notifier . rm_watch ( watch_descriptor . to_i ) if prim_remove end end
Remove the watch associated with the watch_descriptor passed in
Remove the watch associated with the watch_descriptor passed in
# puts "REMOVING: #{watch_descriptor}" # the prim_notifier will complain if we remove a watch on a deleted file, # since the watch will have automatically been removed already. Be default we # don't care, but if caller is sure there are some prim watches to clean # up, then they can pass 'true' for prim_remove. Another way to handle # this would be to just default to true and fail silently, but trying this # more conservative approach for now.
watch_descriptor
prim_remove