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

Method is_root

atomic-core/src/record/item.rs:669–671  ·  view source on GitHub ↗

Check if this is the repository root.

(&self)

Source from the content-addressed store, hash-verified

667
668 /// Check if this is the repository root.
669 pub fn is_root(&self) -> bool {
670 self.inode == Inode::ROOT
671 }
672
673 /// Check if this is a directory.
674 pub fn is_dir(&self) -> bool {

Calls

no outgoing calls

Tested by

no test coverage detected