Documentation
¶
Overview ¶
Package pathutil provides path safety helpers for omnibump.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsafePath = errors.New("unsafe path")
ErrUnsafePath is returned when a file path resolves outside the allowed project root boundary (e.g. via path traversal or a symlink escape).
Functions ¶
func ValidatePathWithinRoot ¶
ValidatePathWithinRoot checks that path resolves to a location inside root, following symlinks on both sides so a symlink cannot be used to escape.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.