Watching a Directory for Changes in Java
Actually you have incorrectly subscribed to events. Only last listener has been registered with ENTRY_DELETE events type. To register for all kind of events at once you should use: path.register(service, ENTRY_CREATE, ENTRY_MODIFY, ENTRY_DELETE);