Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath expands ~ to home directory and resolves relative paths
func SanitizePath ¶
SanitizePath creates a safe version of a path by cleaning it and ensuring it stays within bounds. This is used as a secondary safety measure after validation.
func ValidatePath ¶
ValidatePath ensures a path component is safe for use within a project directory. It prevents path traversal attacks by rejecting paths that: - Are empty or just whitespace - Are absolute paths (including Windows drive paths) - Contain ".." segments - Contain invalid characters for filenames - Contain path separators (should be handled by structure)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.