Skip to main content

encode_cwd_dirname

Function encode_cwd_dirname 

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

Encode a (canonicalized, absolute) cwd into its session-directory name.

Bijective for every path whose encoding fits the filename limit; longer paths get the stable <hash16>-<tail> fallback (decode returns None; the store’s .cwd sidecar recovers the path).