Watchman – A File Watching Service
facebook.github.io
facebook.github.io
I know my use case might be uncommon, but I am tired of actually having to handle the occasional creation and instantaneous deletion of files at the top of all my scripts i use for file monitoring.
Edit: and I'm not alone, it seems: https://wingolog.org/archives/2018/05/21/correct-or-inotify-...
My use case is probably not what you're doing, as the file isn't going to show up and vanish quickly, but maybe it would be better than scripting inotify?
I'll have to take a look at watchman though, seems solid from the looks of it.