Skip to main content

explorer_quote

Function explorer_quote 

Source
pub fn explorer_quote(display: &str) -> String
Expand description

explorer.exe’s argument for display. Windows paths can’t contain ", so quoting is unambiguous, and it keeps a path with spaces or commas in one piece. A trailing backslash would escape the closing quote, so it is trimmed; a drive root (C:\) has no spaces and goes unquoted.