Skip to content

Commit

Permalink
Merge pull request #50 from simleo/fix_run_samefile
Browse files Browse the repository at this point in the history
run: don't break if alternateName is same as id
  • Loading branch information
simleo authored Jun 15, 2023
2 parents ed41c26 + b653e83 commit 600ab2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runcrate/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ def rename_data_entities(obj, workdir):
if "File" in as_list(obj.type):
(dst_path.parent).mkdir(parents=True, exist_ok=True)
src_path = workdir / obj.id
shutil.copy(src_path, dst_path)
try:
shutil.copy(src_path, dst_path)
except shutil.SameFileError:
pass


def find_streamflow_file(crate):
Expand Down

0 comments on commit 600ab2d

Please sign in to comment.