en-tts / en_tts_app /helper.py
stefantaubert's picture
update
a31f9ef
raw
history blame
277 Bytes
import os
from pathlib import Path
from typing import Generator
def get_all_files_in_all_subfolders(directory: Path) -> Generator[Path, None, None]:
for root, _, files in os.walk(directory):
for name in files:
file_path = Path(root) / name
yield file_path