diff --git a/Cargo.toml b/Cargo.toml index 4df6d77..efc4b42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wnfsutils" -version = "1.1.10" +version = "1.1.11" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/private_forest.rs b/src/private_forest.rs index 7762b60..6895bee 100644 --- a/src/private_forest.rs +++ b/src/private_forest.rs @@ -54,6 +54,15 @@ pub struct PrivateDirectoryHelper<'a> { // TODO: we assumed all the write, mkdirs use same roots here. this could be done using prepend // a root path to all path segments. impl<'a> PrivateDirectoryHelper<'a> { + // Public getter for the forest field + pub fn forest(&self) -> &Rc { + &self.forest + } + + // Public getter for the root_dir field (if needed) + pub fn root_dir(&self) -> &Rc { + &self.root_dir + } async fn reload( store: &mut FFIFriendlyBlockStore<'a>, cid: Cid,