MonitorDirectory is an event emitter