[][src]Function broot::path::escape_for_shell

pub fn escape_for_shell(path: &Path) -> String

from a path, build a string usable in a shell command, wrapping it in quotes if necessary (and then escaping internal quotes). Don't do unnecessary transformation, so that the produced string is prettier on screen.