Update file.py

This commit is contained in:
dami
2025-09-14 15:40:45 +08:00
parent cd76b72d3c
commit e04f26223e
-1
View File
@@ -311,7 +311,6 @@ def zip(sfile, dfile, stype, path):
# return mw.returnData(False, 'xz压缩命令不存在,请安装!')
# dfile = dfile.strip(".xz")
# cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + ".tar' > " + tmps + " 2>&1 &"
dfile = dfile.strip(".xz")
cmd = "cd '" + path + "' && tar -cJf '" + dfile + "' " + sfile + " > " + tmps + " 2>&1"
# print(cmd)
mw.execShell(cmd)