Most likely using JNA, develop a [FSEvents](https://developer.apple.com/documentation/coreservices/file_system_events) based implementation such that on OSX we are not constrained to 3s poll loop.