pub fn encode_cwd_dirname(cwd: &Path) -> StringExpand 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).