lib/sinotify/notifier.rb
def add_all_directories_in_background
        @child_dir_thread = Thread.new do 
          begin
            self.add_watches! 
          rescue Exception => x
            log "Exception: #{x}, trace: \n\t#{x.backtrace.join("\n\t")}", :error 
          end
        end 
      end
# Open up a background thread that adds all the watches on @file_or_dir_name and,
# if @recurse is true, all of its subdirs.
Open up a background thread that adds all the watches on @file_or_dir_name and,
if @recurse is true, all of its subdirs.
Open up a background thread that adds all the watches on @file_or_dir_name and if @recurse is true all of its subdirs .
def add_all_directories_in_background
        @child_dir_thread = Thread.new do 
          begin
            self.add_watches! 
          rescue Exception => x
            log "Exception: #{x}, trace: \n\t#{x.backtrace.join("\n\t")}", :error 
          end
        end 
      end
def add_all_directories_in_background @child_dir_thread = Thread . new do begin self . add_watches! rescue Exception => x log "Exception: #{x}, trace: \n\t#{x.backtrace.join("\n\t")}" , :error end end end
Open up a background thread that adds all the watches on @file_or_dir_name and,
if @recurse is true, all of its subdirs.
Open up a background thread that adds all the watches on @file_or_dir_name and if @recurse is true all of its subdirs .