Class DirectoryWatcher::CoolioScanner
In: lib/directory_watcher/coolio_scanner.rb
Parent: ::DirectoryWatcher::Scanner

The CoolioScanner uses the Coolio 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 Coolio based scanner that will generate file events and pass those events (as an array) to the given block.

Public Instance methods

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

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

[Validate]