MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_directory_flags

Function get_directory_flags

atomic-repository/src/tracking/tree_ops.rs:123–126  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

121///
122/// The directory flags if this inode is a directory, `None` if it's a file.
123pub 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///

Callers 1

Calls 1

get_directory_flagsMethod · 0.45

Tested by

no test coverage detected