codeskyblue / fswatch

Watch file change, and trigger commands. (Cross platform)
Apache License 2.0
345 stars 61 forks source link

Ignore extra directories before launching "watch" process #20

Closed bikbah closed 3 years ago

bikbah commented 7 years ago

This PR fixes some part of too many open files problem.

The problem is that now fswatch launches watch processes to all directories, ignoring pattens from config file.

Changes in this PR checks if directories is ignored and if true, does not launch watch for him.