mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
refactor
This commit is contained in:
parent
2b93336fbd
commit
74366a3a1b
0
src/subprocess_util/chunked_transfer/__init__.py
Normal file
0
src/subprocess_util/chunked_transfer/__init__.py
Normal file
@ -3,7 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from subprocess_util.exec_receive_chunks_active import exec_receive_chunks_active
|
from subprocess_util.chunked_transfer.active_receive.exec_receive_chunks_active import exec_receive_chunks_active
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
@ -3,7 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from subprocess_util.exec_send_chunks_passive import exec_send_chunks_passive
|
from subprocess_util.chunked_transfer.active_receive.exec_send_chunks_passive import exec_send_chunks_passive
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
@ -2,7 +2,7 @@ import shlex
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
|
|
||||||
from subprocess_util.common import Message2, Message1
|
from subprocess_util.chunked_transfer.active_receive.common import Message2, Message1
|
||||||
from subprocess_util.exec_consume_chunks import execute_consume_chunks
|
from subprocess_util.exec_consume_chunks import execute_consume_chunks
|
||||||
from subprocess_util.repeat import repeat_until_successful
|
from subprocess_util.repeat import repeat_until_successful
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ def exec_receive_chunks_active(
|
|||||||
|
|
||||||
usr_confirmation_socket = target_chunk_path.parent.joinpath(f'{chunk_no}.SOCKET')
|
usr_confirmation_socket = target_chunk_path.parent.joinpath(f'{chunk_no}.SOCKET')
|
||||||
|
|
||||||
chunk_created_path = get_source_created_path()
|
chunk_created_path = get_source_created_path(chunk_no)
|
||||||
chunk_created_cmd = ['ssh',
|
chunk_created_cmd = ['ssh',
|
||||||
ssh_source,
|
ssh_source,
|
||||||
f'cat {shlex.quote(str(chunk_created_path))} && rm {shlex.quote(str(chunk_created_path))}']
|
f'cat {shlex.quote(str(chunk_created_path))} && rm {shlex.quote(str(chunk_created_path))}']
|
@ -1,7 +1,7 @@
|
|||||||
import socket
|
import socket
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from subprocess_util.common import Message1, Message2
|
from subprocess_util.chunked_transfer.active_receive.common import Message1, Message2
|
||||||
from subprocess_util.exec_produce_chunks import execute_produce_chunks
|
from subprocess_util.exec_produce_chunks import execute_produce_chunks
|
||||||
from subprocess_util.unix_sock_input import accept_loop_until_message
|
from subprocess_util.unix_sock_input import accept_loop_until_message
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from subprocess_util.exec_receive_chunks_passive import exec_receive_chunks_passive
|
from subprocess_util.chunked_transfer.active_send.exec_receive_chunks_passive import exec_receive_chunks_passive
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
@ -3,7 +3,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from subprocess_util.exec_send_chunks_active import exec_send_chunks_active
|
from subprocess_util.chunked_transfer.active_send.exec_send_chunks_active import exec_send_chunks_active
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
Loading…
Reference in New Issue
Block a user