예제 #1
0
    def ret_val(environment: FullResolvingEnvironment) -> FilesMatcherModel:
        checked_dir_path = (
            checked_dir
                .resolve(environment.symbols)
                .value_of_any_dependency__d(environment.tcds)
        )

        return models.recursive(checked_dir_path,
                                min_depth,
                                max_depth)
예제 #2
0
 def make_model(path: DescribedPath) -> FilesMatcherModel:
     return sut.recursive(path,
                          min_depth=min_depth,
                          max_depth=max_depth)
예제 #3
0
 def make_model(path: DescribedPath) -> FilesMatcherModel:
     return (
         sut.recursive(path)
             .sub_set(BaseNameStartsWithMatcher(prefix_to_include))
             .sub_set(IsDirectoryMatcher())
     )
예제 #4
0
 def make_model(path: DescribedPath) -> FilesMatcherModel:
     return (
         sut.recursive(path)
             .sub_set(IsRegularFileMatcher())
     )
예제 #5
0
 def make_model(self, model: FileMatcherModel) -> FilesMatcherModel:
     return models.recursive(model.path, self._min_depth, self._max_depth)