| Conditions | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 24 | def _find_paths(directory: str, pattern: str, recursive: bool) -> List[Path]: |
||
| 25 | # Find all paths in the given directory with the given pattern and return |
||
| 26 | # them in a list. |
||
| 27 | path = Path(directory) |
||
| 28 | abspath = str(path.absolute()) |
||
| 29 | sys.path.insert(0, abspath) |
||
| 30 | path_to_discover = path.joinpath(pattern) |
||
| 31 | paths = [Path(filename) for filename in |
||
| 32 | glob.iglob(str(path_to_discover), recursive=recursive)] |
||
| 33 | return paths |
||
| 34 | |||
| 50 |