Step 8: Directories

Temporary directories

Applications may need to create temporary files. The “tempdir” component creates a permanent folder for storing such files.

Temporary directories are created as subfolders inside innomatic/core/temp.

Each application is responsible for clearing its own temporary files, optionally with a scheduled maintenance task.

However, when an application is uninstalled its temporary directories are automatically removed with their whole content.

Example in application.xml:

 <tempdir name="example-basic-app" />

Generic directories

You may want to store additional files at application, tenant or user levels.

Innomatic Platform already provides folders for such needs:

Applications:

innomatic/core/applications/<application_name>

e.g.: innomatic/core/applications/myapplication

Tenants:

innomatic/core/domains/<tenant_name>

e.g.: innomatic/core/domains/mytenant

Users:

innomatic/core/domains/<tenant_name>/users/<user_name>

e.g.: innomatic/core/domains/mytenant/users/admin@mytenant

Next: Part 5: Creating desktop user interfaces