fix(fsys): 优化过滤规则,过滤所有双下划线开头的文件文件夹

将原先仅过滤__pycache__的逻辑改为过滤所有以双下划线开头的文件和文件夹,覆盖更多系统内置目录文件
This commit is contained in:
qing committed 2026-07-22 12:28:00 +08:00
1 parent 779d6ec887
commit 7d8956f0fd
1 file changed
+2 -1
+2 -1
View File
@@ -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)