Get directory flags for an inode. # Arguments `txn` - A transaction (read or write) `inode` - The inode to check # Returns The directory flags if this inode is a directory, `None` if it's a file.
(txn: &T, inode: Inode)
| 121 | /// |
| 122 | /// The directory flags if this inode is a directory, `None` if it's a file. |
| 123 | pub fn get_directory_flags<T: TreeTxnT>(txn: &T, inode: Inode) -> TrackingResult<Option<u8>> { |
| 124 | txn.get_directory_flags(inode) |
| 125 | .map_err(|e| TrackingError::Database(e.to_string())) |
| 126 | } |
| 127 | |
| 128 | /// Update directory flags (e.g., when adding/removing children). |
| 129 | /// |
no test coverage detected