use std::path::{Path, PathBuf};
use super::interface::ObjectStore;
#[derive(Debug, Clone)]
pub struct LocalFsObjectStore {
root: PathBuf,
}
impl LocalFsObjectStore {
pub fn new(root: PathBuf) -> Self {
Self { root }
}
}
impl ObjectStore for LocalFsObjectStore {
fn id(&self) -> &'static str {
"object.local_fs"
}
fn root(&self) -> &Path {
&self.root
}
}