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

Function project_root

crates/opencode-server/src/routes.rs:2895–2898  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2893}
2894
2895fn project_root() -> Result<PathBuf> {
2896 std::env::current_dir()
2897 .map_err(|e| ApiError::BadRequest(format!("Failed to resolve current directory: {}", e)))
2898}
2899
2900fn canonicalize_within_root(path: &FsPath, root: &FsPath) -> Result<PathBuf> {
2901 let canonical_root = root

Callers 4

list_filesFunction · 0.85
read_fileFunction · 0.85
find_textFunction · 0.85
find_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected