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)
| 653 | /// |
| 654 | /// `true` if this inode is marked as a directory in the DIRECTORIES table. |
| 655 | pub fn is_directory_inode<T: TreeTxnT>(txn: &T, inode: Inode) -> TrackingResult<bool> { |
| 656 | txn.is_directory(inode) |
| 657 | .map_err(|e| TrackingError::Database(e.to_string())) |
| 658 | } |
| 659 | |
| 660 | /// Get directory flags for an inode. |
| 661 | /// |
no test coverage detected