Skip to main content

encode_cwd_for_dir

Function encode_cwd_for_dir 

Source
pub fn encode_cwd_for_dir(cwd: &Path) -> String
Expand description

Encode a working directory path into a safe directory name. Mirrors pi’s encoding: strip leading /, replace / \ : with -, wrap in –…–