Add a directory item.
(&mut self, item: TreeItem)
| 700 | |
| 701 | /// Add a directory item. |
| 702 | pub fn add_directory(&mut self, item: TreeItem) { |
| 703 | if item.depth > self.max_depth_reached { |
| 704 | self.max_depth_reached = item.depth; |
| 705 | } |
| 706 | self.directories_count += 1; |
| 707 | self.items.push(item); |
| 708 | } |
| 709 | |
| 710 | /// Record a skipped item. |
| 711 | pub fn record_skipped(&mut self) { |