Get only directories from the result.
(&self)
| 729 | |
| 730 | /// Get only directories from the result. |
| 731 | pub fn directories(&self) -> impl Iterator<Item = &TreeItem> { |
| 732 | self.items.iter().filter(|item| item.is_directory) |
| 733 | } |
| 734 | |
| 735 | /// Sort items by path. |
| 736 | pub fn sort_by_path(&mut self) { |