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

Method root

atomic-core/src/record/context.rs:636–646  ·  view source on GitHub ↗

Create a record item for the repository root. # Returns A `RecordItem` representing the repository root.

()

Source from the content-addressed store, hash-verified

634 ///
635 /// A `RecordItem` representing the repository root.
636 pub fn root() -> Self {
637 Self {
638 full_path: String::new(),
639 basename: String::new(),
640 inode: crate::types::Inode::ROOT,
641 parent_inode: crate::types::Inode::ROOT,
642 parent_position: Some(crate::types::Position::ROOT.to_option()),
643 metadata: crate::output::FileMetadata::directory(),
644 is_directory: true,
645 }
646 }
647
648 /// Check if this item is the repository root.
649 ///

Callers

nothing calls this directly

Calls 1

to_optionMethod · 0.45

Tested by

no test coverage detected