(items: List[Tuple[float, Path, int]])
| 899 | return items |
| 900 | |
| 901 | def format_recent(items: List[Tuple[float, Path, int]]) -> str: |
| 902 | lines: List[str] = [] |
| 903 | for i, (mt, p, sz) in enumerate(items, start=1): |
| 904 | ts = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(mt)) |
| 905 | lines.append(f"{i:>2}. {ts} {format_size(sz):>10} {p}") |
| 906 | return "\n".join(lines) if lines else "" |
| 907 | |
| 908 | |
| 909 | # ------------------ Clean duplicates (keep newest, trash others) ------------------ |
no test coverage detected