Skip to content

Efficient Filesystem Handling

Thibaud Guillaume-Gentil edited this page May 11, 2013 · 4 revisions

Various operating systems are willing to notify you of changes to files, but the API to register/receive updates varies (see rb-fsevent for OS X, rb-inotify for Linux, and rb-fchange for Windows). Guard uses the Listen gem to install all these adapters, and will select the one most appropriate for your platform. If Guard is forced to fall back to polling it will give you a warning about it doing so.

If you're using Windows and at least Ruby 1.9.2, then please add Windows Directory Monitor gem to your Gemfile to support it.

group :development do
  gem 'wdm', :platforms => [:mswin, :mingw], :require => false
end