Skip to content

Commit 5eb79d5

Browse files
authored
Merge pull request #278 from cta-observatory/link_datacheck
Undo the possible symlink to longterm file before making the new one
2 parents 4aff331 + 2ccc84e commit 5eb79d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/osa/paths.py

+1
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,5 @@ def create_longterm_symlink():
369369
latest_version_file = get_latest_version_file(all_longterm_files)
370370

371371
log.info("Symlink the latest version longterm DL1 datacheck file in the common directory.")
372+
linked_longterm_file.unlink(missing_ok=True)
372373
linked_longterm_file.symlink_to(latest_version_file)

0 commit comments

Comments
 (0)