Conditions | 3 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | from pathlib import Path |
||
11 | @classmethod |
||
12 | def output_path_of(cls, what: Search, input_path: Path, to: Optional[Path]) -> Path: |
||
13 | if to is None: |
||
14 | return cls.default_path_of(what, input_path) |
||
15 | elif str(to).startswith("."): |
||
16 | return cls.default_path_of(what, input_path).with_suffix(str(to)) |
||
17 | else: |
||
18 | return to |
||
19 | |||
32 |