Skip to main content

sanitize_project_path

Function sanitize_project_path 

Source
pub fn sanitize_project_path(path: &str) -> String
Expand description

Sanitize an absolute path into a directory name.

Strips leading / and replaces remaining / with -. Mirrors zag’s Config::sanitize_path (zag-agent/src/config.rs:179).