Add photo conversion

This commit is contained in:
James Grogan 2024-11-10 17:23:46 +00:00
parent c09179f5da
commit 3e7ce98755
10 changed files with 215 additions and 54 deletions

View file

@ -1,7 +1,11 @@
from pathlib import Path
import os
import sys
from typing import Callable
def for_each_file(path: Path, extensions: list[str] | None, func: Callable):
for eachFile in get_files_recursive(path, extensions):
func(eachFile)
def get_files_recursive(path: Path, extensions: list[str] | None) -> list[Path]:
if not extensions: