Make watchman check periodically for changes in a directory

268 Views Asked by At

I want to make watchman check for changes in a directory every 1 s or so. How can I do that. I can't find it in the docs.

1

There are 1 best solutions below

0
On

Watchman's purpose is to avoid needing to do such polls. You can just make a Watchman subscription to watch a directory for changes: https://facebook.github.io/watchman/docs/cmd/subscribe.html