Parse number path suffixes, returns -1 on error.
(maybe_num: str)
| 194 | |
| 195 | |
| 196 | def parse_num(maybe_num: str) -> int: |
| 197 | class="st">""class="st">"Parse number path suffixes, returns -1 on error."class="st">"" |
| 198 | try: |
| 199 | return int(maybe_num) |
| 200 | except ValueError: |
| 201 | return -1 |
| 202 | |
| 203 | |
| 204 | def _force_symlink(root: Path, target: str | PurePath, link_to: str | Path) -> None: |