Skip to main content

Module paths

Module paths 

Source
Expand description

Path mapping and sandboxing system.

This module provides a configurable path prefix mapping system that:

  • Maps custom prefixes (e.g., home:, project:, media:) to configured paths
  • Enforces lowercase prefixes
  • Optionally maps Windows drive letters
  • Sandboxes paths to prevent escape above root
  • Is pure string manipulation (no filesystem I/O)
  • Provides reverse translation API to get actual filesystem paths

Structs§

PathMapper
Pure string-based path mapper. No filesystem I/O.

Type Aliases§

PathResult
Result type for path operations.