pub fn sanitize_relative_path(name: &str) -> WorkflowResult<PathBuf>Expand description
Sanitizes a ‘/’-separated path from decrypted metadata into a relative
path that cannot escape the output directory: rejects .. components,
backslashes, and (on Windows) drive prefixes and : stream separators,
drops empty and . components (which also relativizes
absolute paths). The decrypted name is deliberately not echoed into
error messages.