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).
Create a Rev based scanner that will generate file events and pass those events (as an array) to the given block.
Start the Rev scanner loop. If the scanner is already running, this method will return without taking any action.