From 9d54d8163046914c16b8dff83e650ec09add52c3 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 28 Jul 2025 19:18:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(batch=5Fupload):=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89macOS=E7=9A=84=E9=9A=90=E8=97=8F=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=BB=A5=E9=81=BF=E5=85=8D=E4=B8=8A=E4=BC=A0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/batch_upload.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/batch_upload.py b/scripts/batch_upload.py index 99f867a3..1e909663 100644 --- a/scripts/batch_upload.py +++ b/scripts/batch_upload.py @@ -244,6 +244,9 @@ def main( console.print(f"[bold yellow]No files found in '{directory}' matching '{pattern}'. Aborting.[/bold yellow]") raise typer.Exit() + # 过滤掉macos的隐藏文件 + all_files = [f for f in all_files if not f.name.startswith("._")] + # Filter out already processed files files_to_upload = [] skipped_files = []