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

Function is_directory_inode

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

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)

Source from the content-addressed store, hash-verified

106///
107/// `true` if this inode is marked as a directory in the DIRECTORIES table.
108pub 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///

Callers 2

list_trackedFunction · 0.85

Calls 1

is_directoryMethod · 0.45

Tested by

no test coverage detected