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