Check if a path is tracked. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string
(txn: &T, path: &str)
| 284 | /// * `txn` - A transaction (read or write) |
| 285 | /// * `path` - The normalized path string |
| 286 | pub fn is_tracked<T: TreeTxnT>(txn: &T, path: &str) -> TrackingResult<bool> { |
| 287 | let result = txn |
| 288 | .get_inode(path) |
| 289 | .map_err(|e| TrackingError::Database(e.to_string()))?; |
| 290 | Ok(result.is_some()) |
| 291 | } |
| 292 | |
| 293 | /// Get the inode for a tracked path. |
| 294 | /// |
no test coverage detected