(folder: Path, recursive: bool)
| 120 | |
| 121 | |
| 122 | def gather_photos(folder: Path, recursive: bool) -> list[Path]: |
| 123 | if recursive: |
| 124 | return [p for p in folder.rglob("*") if is_photo(p)] |
| 125 | return [p for p in folder.iterdir() if is_photo(p)] |
| 126 | |
| 127 | |
| 128 | def rename_photos(opts: Options) -> int: |
no test coverage detected