def validatePath()

in src/guclimate/requests/validate.py [0:0]


def validatePath(path: str):
    outputDir = os.path.dirname(path)

    if not os.path.exists(outputDir):
        raise errors.ValidationError(
            "", reason=f"Output directory '{outputDir}' does not exist"
        )

    return path