mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update file.py
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user