Get only files from the result.
(&self)
| 724 | |
| 725 | /// Get only files from the result. |
| 726 | pub fn files(&self) -> impl Iterator<Item = &TreeItem> { |
| 727 | self.items.iter().filter(|item| item.is_file()) |
| 728 | } |
| 729 | |
| 730 | /// Get only directories from the result. |
| 731 | pub fn directories(&self) -> impl Iterator<Item = &TreeItem> { |