zut.path.assert_safe_relative_path

zut.path.assert_safe_relative_path(path: str | PathLike) None

Ensure the given path is relative and not subject to path traversal.

No actual disk I/O (use of PurePath).