Update file.py

This commit is contained in:
dami
2025-06-16 18:43:19 +08:00
parent 960ca4deca
commit 732eba7d7d
+2 -2
View File
@@ -123,7 +123,7 @@ def unzip(sfile, dfile, stype, path):
mw.execShell("cd " + path + " && tar -zxvf " + sfiles +" -C " + dfile + " > " + tmps + " 2>&1 &")
if os.path.exists(dfile):
if dfile.startswith("/www"):
if dfile.startswith("/www/wwwroot"):
setFileAccept(dfile)
mw.writeLog("文件管理", '文件[{1}]解压[{2}]成功!', (sfile, dfile))
return mw.returnData(True, '文件解压成功!')
@@ -176,7 +176,7 @@ def uncompress(sfile, dfile, path):
mw.execShell(cmd)
if os.path.exists(dfile):
if dfile.startswith("/www"):
if dfile.startswith("/www/wwwroot"):
setFileAccept(dfile)
mw.writeLog("文件管理", '文件[{1}]解压[{2}]成功!', (sfile, dfile,))
return mw.returnData(True, '文件解压成功!')