Class DirectoryWatcher::RevScanner
In: lib/directory_watcher/rev_scanner.rb
Parent: ::DirectoryWatcher::Scanner

The RevScanner uses the Rev loop to monitor changes to files in the watched directory. This scanner is more efficient than the pure Ruby scanner because it relies on the operating system kernel notifictions instead of a periodic polling and stat of every file in the watched directory (the technique used by the Scanner class).

Methods

new   start   stop  

Public Class methods

Create a Rev based scanner that will generate file events and pass those events (as an array) to the given block.

Public Instance methods

Start the Rev scanner loop. If the scanner is already running, this method will return without taking any action.

Stop the Rev scanner loop. If the scanner is already stopped, this method will return without taking any action.

[Validate]