| Conditions | 5 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | import os |
||
| 10 | def main(log_printer=None, section: Section=None): |
||
| 11 | start_path = get_config_directory(section) |
||
| 12 | log_printer = log_printer or LogPrinter(ConsolePrinter()) |
||
| 13 | |||
| 14 | if start_path is None: |
||
| 15 | log_printer.err("Can only delete .orig files if .coafile is found") |
||
| 16 | return 255 |
||
| 17 | |||
| 18 | orig_files = Globbing.glob(os.path.abspath( |
||
| 19 | os.path.join(start_path, '**', '*.orig'))) |
||
| 20 | |||
| 37 |