From 7d8956f0fd22b8c5849d8ef9899a4c2349db9cf6 Mon Sep 17 00:00:00 2001 From: qing <1776177662@qq.com> Date: Wed, 22 Jul 2026 12:28:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(fsys):=20=E4=BC=98=E5=8C=96=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E8=A7=84=E5=88=99=EF=BC=8C=E8=BF=87=E6=BB=A4=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=8F=8C=E4=B8=8B=E5=88=92=E7=BA=BF=E5=BC=80=E5=A4=B4?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将原先仅过滤__pycache__的逻辑改为过滤所有以双下划线开头的文件和文件夹,覆盖更多系统内置目录文件 --- static/fsys.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/fsys.py b/static/fsys.py index 81ad4fb..5048bb3 100644 --- a/static/fsys.py +++ b/static/fsys.py @@ -121,7 +121,8 @@ def get_file_list(): items = [] for item in os.listdir(full_path): - if item == '__pycache__': + # 过滤系统项目:以双下划线开头的文件和文件夹(如 __pycache__、__view.html、__icons 等) + if item.startswith('__'): continue item_path = os.path.join(full_path, item)