Create a record item for the repository root. This is a special item representing the root directory. # Example ```rust use atomic_core::record::RecordItem; use atomic_core::types::Inode; let root = RecordItem::root(); assert!(root.is_root()); assert_eq!(root.inode(), Inode::ROOT); ```
()
| 594 | /// assert_eq!(root.inode(), Inode::ROOT); |
| 595 | /// ``` |
| 596 | pub fn root() -> Self { |
| 597 | Self { |
| 598 | path: PathBuf::new(), |
| 599 | basename: String::new(), |
| 600 | inode: Inode::ROOT, |
| 601 | parent_inode: Inode::ROOT, |
| 602 | parent_position: Position::ROOT, |
| 603 | metadata: FileMetadata::directory(), |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | /// Create a record item with full details. |
| 608 | /// |
no outgoing calls
no test coverage detected