public function getName(bool $withExtension = true): string
    {
        if ($withExtension) {
            return pathinfo($this->path, PATHINFO_BASENAME);
        }

        return pathinfo($this->path, PATHINFO_FILENAME);
    }