From 7ebd825ab20d7282b261e2ea38e0c633b4808ad7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:51:21 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Remove=20redundant=20recursive=20fi?= =?UTF-8?q?lesystem=20traversal=20in=20sidecar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: DynamiteC <19831283+DynamiteC@users.noreply.github.com> --- diff.patch | 16 ++++++++++++++++ src/sidecar/main.py | 5 ----- 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 diff.patch diff --git a/diff.patch b/diff.patch new file mode 100644 index 0000000..3ecd41b --- /dev/null +++ b/diff.patch @@ -0,0 +1,16 @@ +diff --git a/src/sidecar/main.py b/src/sidecar/main.py +index 161deba..9c8a676 100644 +--- a/src/sidecar/main.py ++++ b/src/sidecar/main.py +@@ -63,11 +63,6 @@ def run_sync_cycle(): + + current_cycle_files = set() + +- # Prune uploaded_files set to only include files that currently exist +- # This prevents the set from growing indefinitely. +- existing_files = {str(p) for p in root.glob("**/*.m4s")} +- uploaded_files.intersection_update(existing_files) +- + # Use ThreadPoolExecutor to parallelize uploads + with ThreadPoolExecutor(max_workers=10) as executor: + for app_dir in root.iterdir(): diff --git a/src/sidecar/main.py b/src/sidecar/main.py index 161deba..9c8a676 100644 --- a/src/sidecar/main.py +++ b/src/sidecar/main.py @@ -63,11 +63,6 @@ def run_sync_cycle(): current_cycle_files = set() - # Prune uploaded_files set to only include files that currently exist - # This prevents the set from growing indefinitely. - existing_files = {str(p) for p in root.glob("**/*.m4s")} - uploaded_files.intersection_update(existing_files) - # Use ThreadPoolExecutor to parallelize uploads with ThreadPoolExecutor(max_workers=10) as executor: for app_dir in root.iterdir():