MCPcopy Create free account
hub / github.com/AI45Lab/Code / session_path

Method session_path

core/src/store/file_store.rs:47–50  ·  view source on GitHub ↗

Get the file path for a session

(&self, id: &str)

Source from the content-addressed store, hash-verified

45
46 /// Get the file path for a session
47 fn session_path(&self, id: &str) -> PathBuf {
48 // Sanitize ID to prevent path traversal
49 self.dir.join(format!("{}.json", safe_session_id(id)))
50 }
51
52 fn artifact_dir(&self, id: &str) -> PathBuf {
53 self.dir.join("artifacts").join(safe_session_id(id))

Callers 4

saveMethod · 0.80
loadMethod · 0.80
deleteMethod · 0.80
existsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected