Update file.py

This commit is contained in:
dami
2025-11-23 17:41:30 +08:00
parent 216a3d5d60
commit 7ef3971fe1
+1 -1
View File
@@ -322,7 +322,7 @@ def zip(sfile, dfile, stype, path):
return mw.returnData(False, 'rar压缩命令不存在,请安装!')
mw.execShell("cd '" + path + "' && rar a '" + dfile + "' '" + sfile + "' > " + tmps + " 2>&1")
elif stype == 'bz2':
mw.execShell("cd '" + path + "' && tar -cjvf '" + dfile + "' " + sfiles + " > " + tmps + " 2>&1")
mw.execShell("cd '" + path + "' && tar -cjvf '" + dfile + "' " + sfile + " > " + tmps + " 2>&1")
else:
return mw.returnData(False, '未知压缩格式')
mw.writeLog("文件管理", '文件[{1}]压缩[{2}]成功!', (sfile, dfile))