From df83454de633872e41b771580dd44ddfec2faaeb Mon Sep 17 00:00:00 2001 From: Flag Date: Fri, 24 Apr 2026 08:22:02 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20SCP=20utilise=20glob=20frame=5F*.jpg=20a?= =?UTF-8?q?u=20lieu=20de=20-r=20(=C3=A9vite=20cr=C3=A9ation=20sous-dossier?= =?UTF-8?q?s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/dispatcher.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/dispatcher.py b/scripts/dispatcher.py index 3986108..a8ba997 100644 --- a/scripts/dispatcher.py +++ b/scripts/dispatcher.py @@ -428,9 +428,10 @@ def _extract_on_remote_host(job_id: int, worker: dict, src_host: str, src_path: set_status(job_id, step=f"scp frames {vid_num}/{n_videos} -> {worker['host']}") print(f" scp frames {remote_tmp}/ -> {worker['host']}:{frames_dir}/") + # Use glob instead of -r to copy files directly (scp -r creates a subdir named after source) pull_cmd = ( - f"scp -r -o BatchMode=yes " - f"{shlex.quote(src_host)}:{shlex.quote(remote_tmp + '/')} " + f"scp -o BatchMode=yes " + f"'{src_host}:{remote_tmp}/frame_*.jpg' " f"{shlex.quote(frames_dir)}/" ) rc2, _, err2 = ssh(worker["ssh_alias"], pull_cmd, timeout=3600)