From 9c6dc27334697e0126fccae3951dd7509e28e3bd Mon Sep 17 00:00:00 2001 From: luc Date: Mon, 13 Jan 2025 10:59:41 -0500 Subject: [PATCH] Update deliver_pipeline.py --- scripts/deliver_pipeline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/deliver_pipeline.py b/scripts/deliver_pipeline.py index 5379bca..79a658d 100644 --- a/scripts/deliver_pipeline.py +++ b/scripts/deliver_pipeline.py @@ -75,8 +75,7 @@ def deliver_pipeline_output(project, pi, requestName): destination = delivery_folder + "/" + sample print("copy {}".format(sample_path)) if os.path.isdir(sample_path): - if not os.path.exists(destination): - shutil.copytree(sample_path, destination, symlinks=True) + shutil.copytree(sample_path, destination, symlinks=True, dirs_exist_ok=True) else: cmd = "cp {} {}".format(sample_path, destination) print(cmd)