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

Function normalize

crates/opencode-session/src/instruction.rs:122–124  ·  view source on GitHub ↗
(path: &Path)

Source from the content-addressed store, hash-verified

120}
121
122fn normalize(path: &Path) -> PathBuf {
123 std::fs::canonicalize(path).unwrap_or_else(|_| path.to_path_buf())
124}
125
126/// Expand a glob pattern rooted at `cwd`, returning absolute paths.
127fn expand_glob(pattern: &str, cwd: &Path) -> Vec<PathBuf> {

Callers 7

find_upFunction · 0.85
detect_worktree_rootFunction · 0.85
glob_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected