Skip to content

The ignore option on run

Nat! edited this page Feb 15, 2018 · 1 revision

If you use the -i option, then events for files created in the top directory, after the start of mulle-monitor run are missed. That is because mulle-monitor filters the top directory for ignored files and folders. This has the big advantage, that a LOT of events never reach the mulle-monitor.

There are two ways to ignore a build folder. Either add !build/ into each match.d patternfile. Or add build/' to any *patternfile* in ignore.d`.

The first way precludes the missing event problem. The second way saves quite a bit of load.

Solution ?

A solution could be to tell fswatch to monitor top non-recursively and the rest recursively. Does that work ? Does inotifywait do it too ?

Mitigation

Another solution could be to put build outside of the project, but then folders like .git are still slowing down the proceedings (there are ~1000 files in the mulle-monitor .git).

Clone this wiki locally