Check if a file exists in the CRDT tables.
(txn: &mut T, path: &str)
| 446 | |
| 447 | /// Check if a file exists in the CRDT tables. |
| 448 | pub fn file_exists<T: MutTxnT>(txn: &mut T, path: &str) -> PristineResult<bool> { |
| 449 | Ok(txn.get_trunk_by_path(path)?.is_some()) |
| 450 | } |
| 451 | |
| 452 | /// Get the trunk ID for a file path. |
| 453 | pub fn get_trunk_id<T: MutTxnT>(txn: &mut T, path: &str) -> PristineResult<Option<TrunkId>> { |
nothing calls this directly
no test coverage detected