creates a path out of the collection name
(&self)
| 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> { |
no test coverage detected