Skip to main content

parse_file_uri

Function parse_file_uri 

Source
pub fn parse_file_uri(cand: &str) -> Option<PathBuf>
Expand description

Parse an MCP file URI or plain path into a normalized PathBuf. Handles standard file URIs (file:///path), two-slash drive letter URIs (file://C:/...), pipe drive delimiters (file:///C|/..., file://C|/...), percent-encoding (%20, %7C), and plain paths.