emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
5.04k stars 328 forks source link

timer #259

Closed shersoni610 closed 3 years ago

shersoni610 commented 3 years ago

Hello,

Is there a way to set the duration of watching.

Thanks

emcrisostomo commented 3 years ago

Yes, you can fire fswatch with the -1 option, a specified latency using -l, and --fire-idle-events. After latency is passed, an idle event will be emitted, and fswatch will terminate (because of -1).