baseDirectory

fun baseDirectory(storagePath: String): String

Returns the base directory of a user.

Checks first, if the user is logged in and has a tenant and user id. If both are present, it checks if the directory is present or if they have to be created (ACL). If everything is present, it returns the configured base path / tenant id / user id to have a separation between tenants and users.

In case no valid user was present