protected function _inpath($path, $parent) { return $path == $parent || strpos($path, $parent . DIRECTORY_SEPARATOR) === 0; }