(path: str)
| 134 | candidate_files = project_wide_search() |
| 135 | |
| 136 | def extract_step(path: str) -> int: |
| 137 | fname = os.path.basename(path) |
| 138 | m = re.search(r"_step_(\d+)", fname) |
| 139 | return int(m.group(1)) if m else -1 |
| 140 | |
| 141 | candidate_files.sort(key=lambda p: (extract_step(p), os.path.getctime(p))) |
| 142 | return candidate_files[-1] |
no outgoing calls
no test coverage detected