fix: exclude hidden files from asset extraction

This commit is contained in:
2026-07-05 18:35:33 +08:00
parent 87975760ae
commit d806c5e9e7
+1
View File
@@ -92,6 +92,7 @@ def iter_images():
for server in ASSET_SERVER: for server in ASSET_SERVER:
for path, folders, files in os.walk(os.path.join(AzurLaneConfig.ASSETS_FOLDER, server)): for path, folders, files in os.walk(os.path.join(AzurLaneConfig.ASSETS_FOLDER, server)):
for file in files: for file in files:
if not file.startswith('.'):
file = os.path.join(path, file).replace('\\', '/') file = os.path.join(path, file).replace('\\', '/')
yield AssetsImage(file) yield AssetsImage(file)