mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 07:02:43 +00:00
fix: code style warning clear.
消除编译告警 Signed-off-by: liurantao <liurantao@huawei.com>
This commit is contained in:
parent
7a1ff9c795
commit
10380f7199
@ -76,10 +76,11 @@ def file_copy_check(local, remote, file_id):
|
||||
pass
|
||||
else:
|
||||
os.mkdir(local)
|
||||
copy_cmd = f"hdc shell mkdir -o /data/local/tmp/{file_id} && cp -rf {remote} /data/local/tmp/{file_id}/"
|
||||
shell_cmd = f"hdc shell ls -alZ /data/local/tmp/{file_id}/"
|
||||
recv_cmd = f"hdc file recv /data/local/tmp/{file_id} {local}"
|
||||
remove_cmd = f"hdc shell rm -rf /data/local/tmp/{file_id}"
|
||||
device_tmp_dir = "data/local/tmp"
|
||||
copy_cmd = f"hdc shell mkdir -p {device_tmp_dir}/{file_id} && cp -rf {remote} {device_tmp_dir}/{file_id}/"
|
||||
shell_cmd = f"hdc shell ls -alZ {device_tmp_dir}/{file_id}/"
|
||||
recv_cmd = f"hdc file recv {device_tmp_dir}/{file_id} {local}"
|
||||
remove_cmd = f"hdc shell rm -rf {device_tmp_dir}/{file_id}"
|
||||
copy_output = subprocess.check_output(copy_cmd.split()).decode().replace(',', ' ')
|
||||
check_output = subprocess.check_output(shell_cmd.split()).decode().replace(',', ' ')
|
||||
recv_output = subprocess.check_output(recv_cmd.split()).decode().replace(',', ' ')
|
||||
|
Loading…
Reference in New Issue
Block a user