diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index 8300da29..b98e1714 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -40,6 +40,11 @@ impl StoreId { self } + pub fn with_base(mut self, base: PathBuf) -> Self { + self.base = Some(base); + self + } + pub fn storified(self, store: &Store) -> StoreId { StoreId { base: Some(store.path().clone()),