MCPcopy Index your code
hub / github.com/geekcomputers/Python / gather_photos

Function gather_photos

photo_timestamp_renamer.py:122–125  ·  view source on GitHub ↗
(folder: Path, recursive: bool)

Source from the content-addressed store, hash-verified

120
121
122def 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
128def rename_photos(opts: Options) -> int:

Callers 1

rename_photosFunction · 0.85

Calls 1

is_photoFunction · 0.85

Tested by

no test coverage detected