pub fn resolve_inside( root: impl AsRef<Path>, child: impl AsRef<Path>, ) -> Result<PathBuf, PathError>
Resolve child under root, ensuring the result stays inside root lexically.
child
root
Lexical containment is not symlink-safe. For security-sensitive uses, combine with filesystem canonicalization of both root and result and re-check containment. See SECURITY.md.
SECURITY.md
No.