from pathlib import Path def _get_chunk_file(chunk_file_tmpl: Path, ct: int): return chunk_file_tmpl.parent.joinpath(f'{chunk_file_tmpl.name}.{ct}')