Documentation
¶
Overview ¶
Package pathing provides portable host-filesystem path operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base ¶
Base returns the last path element while treating both slash styles as separators. Use this for parsing stored path strings that may originate from another OS.
func Clean ¶
Clean normalizes path-like strings for cross-platform parsing by treating both slash styles as separators. Use this for metadata/source-path parsing, not filesystem operations.
func IsWithinRoot ¶
IsWithinRoot reports whether target resolves to root or a descendant of root. It first checks lexical paths, then repeats the check with symlinks resolved through the nearest existing path prefix so missing child paths under a symlink cannot escape the root.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package layout defines deterministic application filesystem layouts.
|
Package layout defines deterministic application filesystem layouts. |
|
Package policy checks repository source for portable path-handling violations.
|
Package policy checks repository source for portable path-handling violations. |