Expand description
Platform-aware directory resolution.
macOS: ~/Library/Application Support/Convergio Linux: ~/.local/share/convergio Windows: %APPDATA%/Convergio Fallback: ~/.convergio/
Functions§
- convergio_
data_ dir - Primary Convergio data directory.
- project_
output_ dir - Output directory for a named project. The project name is validated to prevent path traversal.
- sanitize_
path - Validate a path is within an allowed base directory. Prevents path traversal. Returns the canonicalized path on success, or an error if traversal detected.
- validate_
path_ components - Validate a path only contains safe characters (no traversal components).
Does NOT require the path to exist yet (for create operations).
Rejects absolute paths (
/foo) and parent traversal (..).