Add photo conversion
This commit is contained in:
parent
c09179f5da
commit
3e7ce98755
10 changed files with 215 additions and 54 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue