Please note that the directory monitor (it's from 2008) can be implemented much better today. For example, have a look at this implementation (from 2011): <https://github.com/boostcon/2011_presentations/blob/master/wed/asio_extensions/directory_monitor.cpp>