MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / segment_path

Function segment_path

nodedb/src/engine/array/store/manifest.rs:146–148  ·  view source on GitHub ↗

Returns the absolute path the engine writes a segment file to.

(root: &Path, id: &str)

Source from the content-addressed store, hash-verified

144
145/// Returns the absolute path the engine writes a segment file to.
146pub fn segment_path(root: &Path, id: &str) -> PathBuf {
147 root.join(id)
148}
149
150#[cfg(test)]
151mod tests {

Callers 4

openMethod · 0.70
install_segmentMethod · 0.70
replace_segmentsMethod · 0.70
unlink_segmentMethod · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected