def dispatch(self, event) -> None:
    if event.is_directory:
        return
    paths: List[str] = []
    if hasattr(event, 'dest_path'):
        paths.append(os.fsdecode(event.dest_path))
    if event.src_path:
        paths.append(os.fsdecode(event.src_path))
    for raw_path in paths:
        _LOG.debug('File event: %s', raw_path)
    for path in (Path(p).resolve() for p in paths):
        if ((not git_ignored(path)) and self._path_matches(path)):
            self._handle_matched_event(path)
            return
def dispatch(self, event) -> None:
    if event.is_directory:
        return
    paths: List[str] = []
    if hasattr(event, 'dest_path'):
        paths.append(os.fsdecode(event.dest_path))
    if event.src_path:
        paths.append(os.fsdecode(event.src_path))
    for raw_path in paths:
        _LOG.debug('File event: %s', raw_path)
    for path in (Path(p).resolve() for p in paths):
        if ((not git_ignored(path)) and self._path_matches(path)):
            self._handle_matched_event(path)
            return