mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2025-04-01 11:06:00 +02:00
16 lines
391 B
Python
16 lines
391 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')
|
|
|
|
|
|
def _get_chunk_tmpl(subvol: Path):
|
|
return subvol.parent.joinpath(f'{subvol.name}.CHUNK')
|