codeskyblue / fswatch

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

Can't seem to ignore a path. #19

Closed nerdyworm closed 7 years ago

nerdyworm commented 7 years ago

Good evening,

I can't seem to ignore an entire directory. I've tried several patterns and they all seem to fail me.

  pattens:
  - '**/*.go'
  - '!./frontend/'

Basically what happens is that it starts watching frontend/node_modules and then explodes with too many open files.

Is there a way to configure this so that it does not walk that directory?

codeskyblue commented 7 years ago

Reopen if you have more questions

nerdyworm commented 7 years ago

Thank you! Works like a charm!