listResource — OpenModelica User's Guide v1.28.0-dev-252-ga65192c99a documentation

# listResource

Lists all resource files stored in the `resources/` folder of the SSP model.

This method is useful for inspecting the files available in the model, including FMUs, SSV parameter files, SSM mapping files, and other artifacts. It provides a quick overview of which resources are packaged inside the SSP archive.

Syntax:

    listResource() -> list[str]

Returns:

  - (list[str]): A list of resource file paths contained in the SSP model.

Example usage:

    model = SSP("deleteResources1.ssp")
    model.list()

    print("list of Resources in SSP:")
    print("==========================")
    print(model.listResource())