mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update file.py
This commit is contained in:
+1
-1
@@ -175,7 +175,7 @@ def uncompress(sfile, dfile, path):
|
|||||||
cmd += "&& 7z x " + sfile + " -r -o" + dfile + " > " + tmps + " 2>&1 &"
|
cmd += "&& 7z x " + sfile + " -r -o" + dfile + " > " + tmps + " 2>&1 &"
|
||||||
mw.execShell(cmd)
|
mw.execShell(cmd)
|
||||||
elif extension == 'xz':
|
elif extension == 'xz':
|
||||||
cmd += "&& tar -Jxvf " + sfile + " -r -o" + dfile + " > " + tmps + " 2>&1 &"
|
cmd += "&& tar -Jxvf " + sfile + " -C " + dfile + " > " + tmps + " 2>&1 &"
|
||||||
mw.execShell(cmd)
|
mw.execShell(cmd)
|
||||||
|
|
||||||
if os.path.exists(dfile):
|
if os.path.exists(dfile):
|
||||||
|
|||||||
Reference in New Issue
Block a user