public function isSubPathOf(path $path)
{
$this->resolve();
$resolvedPath = $path->getResolvedPath();
return $this->components !== $resolvedPath->components && ($resolvedPath->isRoot() === true || strpos($this->components, $resolvedPath->components . '/') === 0);
}