Skip to main content

sanitize_path

Function sanitize_path 

Source
fn sanitize_path(name: &str) -> String
Expand description

Sanitise a path the same way the claude CLI does - non-alphanumerics become hyphens, and overlong paths are truncated with a base-36 hash suffix (matching JS’s String.prototype.hashCode trick).