def METHOD_NAME(self, *base: str) -> str:
    params = list(base[1:])
    if self.appname:
        params.append(self.appname)
        if self.version:
            params.append(self.version)
    path = os.path.join(base[0], *params)  # noqa: PTH118
    self._optionally_create_directory(path)
    return path