Skip to content

Commit

Permalink
Fixed corner case where the RO-Crate symlink exists, but not the poin…
Browse files Browse the repository at this point in the history
…ted content.
  • Loading branch information
jmfernandez committed Aug 31, 2023
1 parent 59dfb33 commit a87a49c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wfexs_backend/wfexs_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,8 @@ def getWorkflowBundleFromURI(
self.cacheROCrateDir, crate_hashed_id + self.DEFAULT_RO_EXTENSION
)
if not os.path.exists(roCrateFile):
if os.path.lexists(roCrateFile):
os.unlink(roCrateFile)
os.symlink(os.path.basename(cached_content.path), roCrateFile)

return (
Expand Down

0 comments on commit a87a49c

Please sign in to comment.