Documentation
¶
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.
Click to show internal directories.
Click to hide internal directories.