Check if an inode represents a directory. # Arguments `txn` - A transaction (read or write) `inode` - The inode to check # Returns `true` if this inode is marked as a directory in the DIRECTORIES table.
(txn: &T, inode: Inode)
| 106 | /// |
| 107 | /// `true` if this inode is marked as a directory in the DIRECTORIES table. |
| 108 | pub fn is_directory_inode<T: TreeTxnT>(txn: &T, inode: Inode) -> TrackingResult<bool> { |
| 109 | txn.is_directory(inode) |
| 110 | .map_err(|e| TrackingError::Database(e.to_string())) |
| 111 | } |
| 112 | |
| 113 | /// Get directory flags for an inode. |
| 114 | /// |
no test coverage detected