pub fn is_safe_path(base: &Path, path: &Path) -> boolExpand description
Verifies that a given path is “Safe” and doesn’t attempt to escape the base directory.
This is a critical security check against “Path Traversal” attacks in package archives or Lua scripts.