Skip to content

Commit

Permalink
Update deliver_pipeline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Jan 13, 2025
1 parent d79fd69 commit 9c6dc27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/deliver_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9c6dc27

Please sign in to comment.