From 7c6b5bb200c6533fe7e78168702d63acd7498ea6 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 16 May 2025 02:03:52 +0800 Subject: [PATCH] Update file.py --- web/utils/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/file.py b/web/utils/file.py index 9c551e8b7..c2688159f 100644 --- a/web/utils/file.py +++ b/web/utils/file.py @@ -295,13 +295,13 @@ def zip(sfile, dfile, stype, path): mw.execShell("cd '" + path + "' && zip '" + dfile + "' -r '" + sfile + "' > " + tmps + " 2>&1") elif stype == '7z': if not mw.checkBinExist('7z'): - return mw.returnData(False, '7z解压命令不存在,请安装!') + return mw.returnData(False, '7z压缩命令不存在,请安装!') mw.execShell("cd '" + path + "' && 7z a '" + dfile + "' -r '" + sfile + "' > " + tmps + " 2>&1") elif stype == 'tar_gz': mw.execShell("cd '" + path + "' && tar -zcvf '" + dfile + "' " + sfile + " > " + tmps + " 2>&1") elif stype == 'rar': if not mw.checkBinExist('rar'): - return mw.returnData(False, 'rar解压命令不存在,请安装!') + return mw.returnData(False, 'rar压缩命令不存在,请安装!') mw.execShell("cd '" + path + "' && rar a '" + dfile + "' '" + sfile + "' > " + tmps + " 2>&1") else: sfiles = ''