|
|
@ -404,8 +404,8 @@ class classApi: |
|
|
|
write_log("|-正在解压文件到目录[{}]...".format(dpath)) |
|
|
|
write_log("|-正在解压文件到目录[{}]...".format(dpath)) |
|
|
|
self.write_speed('done', '正在解压') |
|
|
|
self.write_speed('done', '正在解压') |
|
|
|
|
|
|
|
|
|
|
|
self.send('/files/unzip', {"sfile": zip_dst, "dfile": dpath, |
|
|
|
self.send('/files/uncompress', |
|
|
|
"type": "tar", "coding": "UTF-8", "password": "undefined"}) |
|
|
|
{"sfile": zip_dst, "dfile": dpath, 'path': dpath}) |
|
|
|
self.send('/files/exec_shell', |
|
|
|
self.send('/files/exec_shell', |
|
|
|
{"shell": "rm -f " + zip_dst, "path": "/www"}, 30) |
|
|
|
{"shell": "rm -f " + zip_dst, "path": "/www"}, 30) |
|
|
|
return True |
|
|
|
return True |
|
|
|