Generate the list of files present in the source directory.
(source_path: pathlib.Path)
| 408 | |
| 409 | |
| 410 | def get_source_files(source_path: pathlib.Path) -> typing.Generator[str, None, None]: |
| 411 | """ |
| 412 | Generate the list of files present in the source directory. |
| 413 | """ |
| 414 | for path in source_path.rglob("*"): |
| 415 | if path.is_file(): |
| 416 | yield path.relative_to(source_path) |
| 417 | |
| 418 | |
| 419 | def extend_base_template(content: str, base_template: str) -> str: |