public function shortenPath()
    {
        if ($this->scheme !== 'file'
            || !(count($this->path) === 1 && preg_match(static::NORMALIZED_WINDOWS_DRIVE_LETTER, $this->path[0]) === 1)) {
            array_pop($this->path);
        }
    }