mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 03:59:25 +08:00
Update file.py
This commit is contained in:
+1
-1
@@ -311,7 +311,7 @@ def zip(sfile, dfile, stype, path):
|
|||||||
elif stype == 'xz':
|
elif stype == 'xz':
|
||||||
if not mw.checkBinExist('xz'):
|
if not mw.checkBinExist('xz'):
|
||||||
return mw.returnData(False, 'xz压缩命令不存在,请安装!')
|
return mw.returnData(False, 'xz压缩命令不存在,请安装!')
|
||||||
cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + "' > " + tmps + " 2>&1"
|
cmd = "cd '" + path + "' && tar -cvf '" + dfile + ".tar' " + sfile + " && xz -z '" + dfile + ".tar' > " + tmps + " 2>&1"
|
||||||
# print(cmd)
|
# print(cmd)
|
||||||
mw.execShell(cmd)
|
mw.execShell(cmd)
|
||||||
elif stype == 'rar':
|
elif stype == 'rar':
|
||||||
|
|||||||
Reference in New Issue
Block a user