Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ignore 'ignore' event for unwatched file

  • Loading branch information...
commit 5f36d9e6f8e36ef38ae51a2230f4c7a1524074c2 1 parent c84ab1c
@massemanet authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/inoteefy.erl
View
5 src/inoteefy.erl
@@ -77,7 +77,10 @@ take_first(F,[H|T]) ->
maybe_call_back({event,WD,Mask,Cookie,Name}) ->
case get({wd,WD}) of
undefined ->
- ?log([{got_event_without_callback,WD}]);
+ case Mask of
+ [ignored] -> ok;
+ _ -> ?log([{got_event_without_callback,WD,Mask,Cookie,Name}])
+ end;
{Filename,_FD,CB} ->
try CB({Filename,Mask,Cookie,Name})
catch C:R -> ?log([{callback_failed,Filename},{C,R}])
Please sign in to comment.
Something went wrong with that request. Please try again.