Show More
@@ -354,9 +354,12 impl<'a> Matcher for PatternMatcher<'a> | |||
|
354 | 354 | if self.prefix && self.files.contains(directory) { |
|
355 | 355 | return VisitChildrenSet::Recursive; |
|
356 | 356 | } |
|
357 | let path_or_parents_in_set = dir_ancestors(directory) | |
|
358 | .any(|parent_dir| self.files.contains(parent_dir)); | |
|
359 | if self.dirs.contains(directory) || path_or_parents_in_set { | |
|
357 | if self.dirs.contains(directory) { | |
|
358 | return VisitChildrenSet::This; | |
|
359 | } | |
|
360 | if dir_ancestors(directory) | |
|
361 | .any(|parent_dir| self.files.contains(parent_dir)) | |
|
362 | { | |
|
360 | 363 | VisitChildrenSet::This |
|
361 | 364 | } else { |
|
362 | 365 | VisitChildrenSet::Empty |
General Comments 0
You need to be logged in to leave comments.
Login now