Method: FileTracker#scan
- Defined in:
- lib/captured/file_tracker.rb
#scan(paths, state) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/captured/file_tracker.rb', line 9 def scan(paths, state) puts "Scanning #{paths}" paths.each do |path| Dir["#{path}#{@options[:watch_pattern]}"].each do |file| self.add file, state end end end |