private function skipByPath(EventInterface $event)
{
$eventPath = $event->getPath();
if (!$this->isDeep && $eventPath !== $this->absPath) {
// isDeep is false and the path is not the searched path
return true;
}
if (strlen($eventPath) < strlen($this->absPath) || substr($eventPath, 0, strlen($this->absPath)) != $this->absPath) {
// the node path does not start with the given path
return true;
}
return false;
}