From 732eba7d7d68ac117f87df966f4313103d5064b7 Mon Sep 17 00:00:00 2001 From: dami Date: Mon, 16 Jun 2025 18:43:19 +0800 Subject: [PATCH] Update file.py --- web/utils/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/utils/file.py b/web/utils/file.py index 841aea0ce..384571aa0 100644 --- a/web/utils/file.py +++ b/web/utils/file.py @@ -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, '文件解压成功!')