lib/rivendell/import/base.rb in rivendell-import-0.9 vs lib/rivendell/import/base.rb in rivendell-import-0.10

- old
+ new

@@ -33,10 +33,10 @@ Rivendell::Import.logger.debug e.backtrace.join("\n") end end end - Listen.to(directory).change(&callback).start! + Listen.to(directory, latency: 1, wait_for_delay: 5).change(&callback).start! end def process(*paths) paths.flatten.each do |path| method = ::File.directory?(path) ? :directory : :file