MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / load_graph_json

Method load_graph_json

rust-core/src/storage/persistence.rs:114–125  ·  view source on GitHub ↗
(&self, project_id: &str)

Source from the content-addressed store, hash-verified

112 }
113
114 fn load_graph_json(&self, project_id: &str) -> io::Result<Option<PetCodeGraph>> {
115 let graph_file = self.project_dir(project_id).join("graph.json");
116
117 if !graph_file.exists() {
118 return Ok(None);
119 }
120
121 let graph = PetGraphStorageManager::load_from_file(&graph_file)
122 .map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
123
124 Ok(Some(graph))
125 }
126
127 fn load_graph_binary(&self, project_id: &str) -> io::Result<Option<PetCodeGraph>> {
128 let graph_file = self.project_dir(project_id).join("graph.bin");

Callers 1

load_graphMethod · 0.80

Calls 1

project_dirMethod · 0.80

Tested by

no test coverage detected