Create a record item for the repository root. # Returns A `RecordItem` representing the repository root.
()
| 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 | /// |