Skip to main content

sanitize_path

Function sanitize_path 

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

Truncate a filesystem path to start at Subnautica2/ or Subnautica2\, stripping the user-specific prefix for privacy-safe logging.

Returns the original path unchanged if Subnautica2 is not found in the input (e.g. custom paths entered via Set save folder).