resolvePath

fun resolvePath(path: String, currentContext: ControlContext): String

Resolves path relative to the given context currentContext.

Rules:

  • A path starting with "/" (e.g. "/name") -> absolute, from the root.

  • A path without "/" and without ".", ".." (e.g. "name") -> treated as absolute.

  • A path starting with "." (e.g. "./name") -> a sibling in the same container.

  • A path starting with ".." (e.g. "../name") -> one level up in the container hierarchy.