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

Method is_directory

atomic-core/src/pristine/traits/tree.rs:88–90  ·  view source on GitHub ↗

Check if an inode represents a directory. Convenience method that returns `true` if the inode is marked as a directory in the DIRECTORIES table.

(&self, inode: Inode)

Source from the content-addressed store, hash-verified

86 /// Convenience method that returns `true` if the inode is marked as a
87 /// directory in the DIRECTORIES table.
88 fn is_directory(&self, inode: Inode) -> Result<bool, PristineError> {
89 Ok(self.get_directory_flags(inode)?.is_some())
90 }
91
92 /// Get the path for an inode.
93 ///

Callers

nothing calls this directly

Implementers 6

context.rsatomic-core/src/record/context.rs
tests.rsatomic-core/src/output/repo/repository
view_graph.rsatomic-core/src/pristine/view_graph.rs
read.rsatomic-core/src/pristine/txn/read.rs
tree.rsatomic-core/src/pristine/txn/write/tre
graph_batch.rsatomic-core/src/apply/graph_batch.rs

Calls 1

get_directory_flagsMethod · 0.45

Tested by

no test coverage detected