MCPcopy Create free account
hub / github.com/cosdata/cosdata / get_path

Method get_path

src/models/collection.rs:330–334  ·  view source on GitHub ↗

creates a path out of the collection name

(&self)

Source from the content-addressed store, hash-verified

328
329 /// creates a path out of the collection name
330 pub fn get_path(&self) -> Arc<Path> {
331 let collections_path = get_data_path().join("collections");
332 create_dir_all(&collections_path).expect("Failed to create collections directory");
333 collections_path.join(&self.meta.name).into()
334 }
335
336 /// serializes the collection
337 pub fn serialize(&self) -> Result<Vec<u8>, WaCustomError> {

Callers 10

delete_indexFunction · 0.80
index_explicit_txnMethod · 0.80
index_implicit_txnMethod · 0.80
pre_commitMethod · 0.80
initMethod · 0.80

Calls 1

get_data_pathFunction · 0.85

Tested by

no test coverage detected