Skip to main content

Module virtual_path

Module virtual_path 

Source
Expand description

VirtualPath<Marker> — a user-facing path clamped to a virtual root.

VirtualPath wraps a StrictPath and adds a virtual path component rooted at "/". The virtual path is what users see (e.g., "/uploads/logo.png"); the real system path is never exposed. Use virtualpath_display() for safe user-visible output and as_unvirtual() to obtain the underlying StrictPath for system-facing I/O.

Structs§

VirtualPath
Hold a user‑facing path clamped to a virtual root ("/") over a PathBoundary.
VirtualPathDisplay
VirtualReadDir
Iterator over directory entries that yields validated VirtualPath values.