Update file.py

This commit is contained in:
dami
2025-09-14 14:52:09 +08:00
parent 4ec54b2dbc
commit 17c60b6b4e
+3 -3
View File
@@ -169,13 +169,13 @@ def uncompress(sfile, dfile, path):
cmd += "&& gunzip -k " + sfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
elif extension == 'rar':
cmd += "&& unrar x " + sfile + " " + dfile + " > " + tmps + " 2>&1 &"
cmd += "&& unrar x " + sfile + " " + dfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
elif extension == '7z':
cmd += "&& 7z x " + sfile + " -r -o" + dfile + " > " + tmps + " 2>&1 &"
cmd += "&& 7z x " + sfile + " -r -o" + dfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
elif extension == 'xz':
cmd += "&& tar -Jxvf " + sfile + " -C " + dfile + " > " + tmps + " 2>&1 &"
cmd += "&& tar -Jxvf " + sfile + " -C " + dfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
if os.path.exists(dfile):