public function pointingTo(RelativePath $path): self
    {
        $folder = $this->clean();

        if (!$this->isFolder()) {
            $folder = $this->folder();
        }

        if ((string) $path->substring(0, 2) === './') {
            $path = $path->substring(2);
        }

        if ((string) $path->substring(0, 3) === '../') {
            $path = $path->substring(3);
            $folder = $folder->folder();
        }

        return new self((string) $folder . (string) $path);
    }