Documentation
¶
Overview ¶
Package pathutil provides path and name validation utilities for JVS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanRel ¶
CleanRel normalizes a component-relative path and rejects paths that escape their root. It treats ".." as a component, so names such as "a..b" remain valid.
func ValidateName ¶
ValidateName checks worktree/ref name safety per spec 02/03.
func ValidateNoSymlinkParents ¶
ValidateNoSymlinkParents verifies that every existing parent component under root is a real directory. The final component is intentionally not checked so callers can treat a symlink leaf as data.
func ValidatePathSafety ¶
ValidatePathSafety verifies target path does not escape repo root.
func ValidateTag ¶
ValidateTag validates a tag string (same rules as worktree names).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.