omni::extras::resolvePath

Defined in omni/extras/FileSystemHelpers.h

inline std::string omni::extras::resolvePath(const std::string &path, const std::string &root = {})

Resolves a given path by resolving all Tokens and optionally prepending the given root path.

Parameters
  • path – A path that may contain tokens (see carb::tokens::ITokens)

  • root – If path (after token resolution) is a relative path and this is provided, the returned path is prepended with this value.

Returns

path with tokens resolved, prepended by root (if root is provided and the token-resolved path is relative)