From 67f50e757dd09921029959bb2179c5af6511e98f Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Sat, 30 May 2015 20:30:31 +0200 Subject: [PATCH] show warning when recursion is off (Darwin) --- lib/listen/adapter/darwin.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/listen/adapter/darwin.rb b/lib/listen/adapter/darwin.rb index 70757733..973d0934 100644 --- a/lib/listen/adapter/darwin.rb +++ b/lib/listen/adapter/darwin.rb @@ -14,6 +14,10 @@ class Darwin < Base # NOTE: each directory gets a DIFFERENT callback! def _configure(dir, &callback) + if /1|true/ =~ ENV['LISTEN_GEM_FSEVENT_NO_RECURSION'] + STDERR.puts "WARNING: Recursive scanning is disabled, which should"\ + " be faster, but not all changes may be properly detected yet." + end require 'rb-fsevent' opts = { latency: options.latency }