(&self, path: &str)
| 5 | |
| 6 | impl<'a> TreeTxnT for WriteTxn<'a> { |
| 7 | fn get_inode(&self, path: &str) -> PristineResult<Option<Inode>> { |
| 8 | let table = self.txn.open_table(TREE)?; |
| 9 | let result = table.get(path)?; |
| 10 | match result { |
| 11 | Some(value) => Ok(Some(Inode::new(value.value()))), |
| 12 | None => Ok(None), |
| 13 | } |
| 14 | } |
| 15 | |
| 16 | fn get_directory_flags(&self, inode: Inode) -> PristineResult<Option<u8>> { |
| 17 | let table = self.txn.open_table(DIRECTORIES)?; |