From 7ad988bceb035d9c88b1bc69a27ad4c58b09c4d5 Mon Sep 17 00:00:00 2001 From: dami Date: Sun, 14 Sep 2025 15:04:26 +0800 Subject: [PATCH] Update file.py --- web/utils/file.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web/utils/file.py b/web/utils/file.py index 5f3315c46..ee62f06a3 100644 --- a/web/utils/file.py +++ b/web/utils/file.py @@ -312,6 +312,7 @@ def zip(sfile, dfile, stype, path): if not mw.checkBinExist('xz'): return mw.returnData(False, 'xz压缩命令不存在,请安装!') cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + "' > " + tmps + " 2>&1" + # print(cmd) mw.execShell(cmd) elif stype == 'rar': if not mw.checkBinExist('rar'):