Documentation
¶
Overview ¶
Package pathutil provides shared filesystem-path normalization for harness components that must compare local persistence roots safely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Canonicalize ¶
Canonicalize returns sorted, duplicate-free canonical paths. It resolves the deepest existing prefix of each path through symlinks and then appends any missing suffix. Empty paths are ignored. Any ambiguous resolution fails closed with *CanonicalPathError and no partial result.
Types ¶
type CanonicalPathError ¶
CanonicalPathError reports that a path could not be canonicalized without ambiguity. Path is the original input, Op is the failed resolution step, and Cause is available through errors.Is/As.
func (*CanonicalPathError) Error ¶
func (e *CanonicalPathError) Error() string
func (*CanonicalPathError) Unwrap ¶
func (e *CanonicalPathError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.