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