summaryrefslogtreecommitdiff
path: root/Utility/Kqueue.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Kqueue.hs')
-rw-r--r--Utility/Kqueue.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Utility/Kqueue.hs b/Utility/Kqueue.hs
index f44893195..4b72961b2 100644
--- a/Utility/Kqueue.hs
+++ b/Utility/Kqueue.hs
@@ -198,7 +198,8 @@ handleChange kq@(Kqueue _ _ dirmap pruner) fd olddirinfo =
go =<< catchMaybeIO (getDirInfo $ dirName olddirinfo)
where
go (Just newdirinfo) = do
- let changes = olddirinfo // newdirinfo
+ let changes = filter (not . pruner . changedFile) $
+ olddirinfo // newdirinfo
let (added, deleted) = partition isAdd changes
-- Scan newly added directories to add to the map.