(&self, inode: Inode)
| 20 | } |
| 21 | |
| 22 | fn get_path(&self, inode: Inode) -> PristineResult<Option<String>> { |
| 23 | let table = self.txn.open_table(REV_TREE)?; |
| 24 | let result = table.get(inode.get())?; |
| 25 | match result { |
| 26 | Some(value) => Ok(Some(value.value().to_string())), |
| 27 | None => Ok(None), |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | fn inode_position(&self, inode: Inode) -> PristineResult<Option<Position<NodeId>>> { |
| 32 | let table = self.txn.open_table(INODES)?; |