Check if this item is the repository root. # Returns `true` if this is the root item.
(&self)
| 651 | /// |
| 652 | /// `true` if this is the root item. |
| 653 | pub fn is_root(&self) -> bool { |
| 654 | self.inode == crate::types::Inode::ROOT && self.full_path.is_empty() |
| 655 | } |
| 656 | |
| 657 | /// Set the parent position. |
| 658 | /// |