force flag cp helper

This commit is contained in:
2023-06-22 16:26:33 +02:00
parent e0457831d7
commit b6ec7da7fa
2 changed files with 10 additions and 1 deletions

View File

@ -392,7 +392,10 @@ def pack_core_commands( # noqa C901
cp_recursive = int(input("Copy recursively (0/1) ?: "))
if cp_recursive not in [0, 1]:
raise ValueError("Invalid value, only 0 or 1 allowed")
user_data = bytearray([cp_recursive])
cp_force = int(input("Copy with force option(0/1) ?: "))
if cp_force not in [0, 1]:
raise ValueError("Invalid value, only 0 or 1 allowed")
user_data = bytearray([cp_recursive, cp_force])
user_data.extend(packet_source_dest_path("Copy"))
q.add_log_cmd(Info.CP_HELPER)
q.add_pus_tc(