Skip to main content

segment_path

Function segment_path 

Source
pub fn segment_path(namespace: &str, id: &str) -> Path
Expand description

Object key of a segment: <namespace>/segments/<id>/data.bin. The directory leaves room for index files beside the data later.

Does not validate namespace; that is Namespace’s job.