pub fn resolve_under_root(
plugin_root: &Path,
path: &str,
) -> Result<String, ScriptLawError>Expand description
Resolve an in-plugin path (relative to the plugin root) to an absolute path and pin it.
- Relative path → resolved under
plugin_root; absolute path → verified to be inside the plugin root; - After lexical normalization it must still be under the plugin root (
../escape →ScriptLawError::EscapedPluginRoot).