mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
12 lines
296 B
Python
12 lines
296 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
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}')
|
|
|
|
|
|
def _get_remote_socket(target: Path):
|
|
return target.parent.joinpath(f'{target}.SOCKET')
|