From e1a5799a3974671f4ae3c2b6a5a2877867aa346e Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Mon, 2 Mar 2026 11:53:30 +0000 Subject: [PATCH] chore: Migrate gsutil usage to gcloud storage --- code/download_physics_iq_data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/download_physics_iq_data.py b/code/download_physics_iq_data.py index 3436cd6..2100892 100644 --- a/code/download_physics_iq_data.py +++ b/code/download_physics_iq_data.py @@ -21,16 +21,16 @@ def download_directory(remote_path: str, local_path: str): - """Sync a remote directory with a local directory using gsutil rsync. + """Sync a remote directory with a local directory using gcloud storage rsync. Args: remote_path: Cloud path. local_path: Local path. """ - print(f"Syncing {remote_path} → {local_path} using gsutil rsync...") + print(f"Syncing {remote_path} → {local_path} using gcloud storage rsync...") os.makedirs(local_path, exist_ok=True) try: - subprocess.run(["gsutil", "-m", "rsync", "-r", remote_path, local_path], check=True) + subprocess.run(["gcloud", "storage", "rsync", "--recursive", remote_path, local_path], check=True) print(f"Sync complete for {remote_path}.") except subprocess.CalledProcessError as e: print(f"Failed to sync: {remote_path}. Error: {e}")