MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / normalize_existing_path

Function normalize_existing_path

crates/opencode-config/src/loader.rs:485–487  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

483}
484
485fn normalize_existing_path(path: &Path) -> PathBuf {
486 fs::canonicalize(path).unwrap_or_else(|_| path.to_path_buf())
487}
488
489fn detect_worktree_stop(start: &Path) -> PathBuf {
490 let mut current = normalize_existing_path(start);

Callers 4

load_projectMethod · 0.85
detect_worktree_stopFunction · 0.85
find_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected