diff --git a/web/utils/file.py b/web/utils/file.py index 0ad21ba1c..17be86fda 100644 --- a/web/utils/file.py +++ b/web/utils/file.py @@ -310,7 +310,7 @@ def zip(sfile, dfile, stype, path): if not mw.checkBinExist('xz'): return mw.returnData(False, 'xz压缩命令不存在,请安装!') dfile = dfile.strip(".xz") - cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + ".tar' > " + tmps + " 2>&1" + cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + ".tar' > " + tmps + " 2>&1 &" # print(cmd) mw.execShell(cmd) elif stype == 'rar':