In the process of re-writing a small application, I’ve just extracted a small file/folder watcher which doesn’t rely on any file system events, so it should be cross platform no problem.
It’s very simple at the moment and there are probably dozens of other similar packages like this, but maybe this will be helpful to someone: https://github.com/radovskyb/watcher.
Lastly there is only one example, but no tests, so you’ll have to forgive me for not writing them yet
Notify the full path of the file that the event is based on.
Added rename Event which currently works at least on systems where mod time is unaffected by a file rename, for example on my MacBook Pro when using the mv command (will re-write for better compatibility)
I just added rename and chmod events to watcher and decided to change the event names to use simpler consts such as watcher.Add or watcher.Remove (kind of like fsnotify’s), just in case you re-download it and the current consts seem to not work
Also thanks for your contributions to it as well… I had never even used travis ci until you added it to the readme and it’s really cool so thanks a lot for that =D
Anyway, if there’s any features you want to suggest for watcher just let me know anytime