MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / normalize_path_separators

Function normalize_path_separators

src/agents/mod.rs:804–806  ·  view source on GitHub ↗

Replace backslashes with forward slashes so paths work in JSON/shell contexts on Windows. No-op on Unix where paths already use `/`.

(path: &str)

Source from the content-addressed store, hash-verified

802/// Replace backslashes with forward slashes so paths work in JSON/shell
803/// contexts on Windows. No-op on Unix where paths already use `/`.
804fn normalize_path_separators(path: &str) -> String {
805 path.replace('\\', "/")
806}
807
808#[macro_export]
809macro_rules! cli_fallback_args_invocation_lit {

Callers 2

which_tracedecay_fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected