Check if a path is tracked. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string
(txn: &T, path: &str)
| 897 | /// * `txn` - A transaction (read or write) |
| 898 | /// * `path` - The normalized path string |
| 899 | pub fn is_tracked<T: TreeTxnT>(txn: &T, path: &str) -> TrackingResult<bool> { |
| 900 | let result = txn |
| 901 | .get_inode(path) |
| 902 | .map_err(|e| TrackingError::Database(e.to_string()))?; |
| 903 | Ok(result.is_some()) |
| 904 | } |
| 905 | |
| 906 | /// Get the inode for a tracked path. |
| 907 | /// |
no test coverage detected