def _notify(self, filepath, events):
        """
        Callback function used by L{INotify} to dispatch an event.
        """
        filepath = filepath.asBytesMode()
        for callback in self.callbacks:
            callback(self, filepath, events)

        Callback function used by L{INotify} to dispatch an event.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/inotify.py