Skip to main content

normalize_uri_path

Function normalize_uri_path 

Source
fn normalize_uri_path(Path: &str) -> String
Expand description

Normalize a URI-style path to a platform-native path. On Windows, URI paths look like /C:/Users/... - strip the leading slash. On Unix, paths already start with /. Also handles percent-encoded characters (%20 for space, etc.) Also maps vscode-userdata paths /User/... to the real userdata directory.