Skip to main content

encode_cwd

Function encode_cwd 

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

Encode cwd into a single path-safe component for the per-cwd session bucket.

Matches pi migrations.ts:

let safePath = `--${cwd.replace(/^[/\\]/, "").replace(/[/\\:]/g, "-")}--`