MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / normalize_path

Method normalize_path

crates/opencode-util/src/filesystem.rs:27–30  ·  view source on GitHub ↗
(p: &str)

Source from the content-addressed store, hash-verified

25
26 #[cfg(windows)]
27 pub fn normalize_path(p: &str) -> std::io::Result<String> {
28 use std::fs;
29 fs::canonicalize(p).map(|p| p.to_string_lossy().to_string())
30 }
31
32 #[cfg(not(windows))]
33 pub fn normalize_path(p: &str) -> String {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected