Get all paths with a specific status.
(&self, status: FileStatus)
| 721 | |
| 722 | /// Get all paths with a specific status. |
| 723 | pub fn paths_with_status(&self, status: FileStatus) -> Vec<&Path> { |
| 724 | self.entries |
| 725 | .iter() |
| 726 | .filter(|e| e.status == status) |
| 727 | .map(|e| e.path()) |
| 728 | .collect() |
| 729 | } |
| 730 | |
| 731 | /// Get all tracked file paths (not untracked). |
| 732 | pub fn tracked_paths(&self) -> Vec<&Path> { |