Skip to content

Commit

Permalink
show warning when recursion is off (Darwin)
Browse files Browse the repository at this point in the history
  • Loading branch information
e2 committed May 30, 2015
1 parent a35c2b2 commit 67f50e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/listen/adapter/darwin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down

0 comments on commit 67f50e7

Please sign in to comment.