We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f8481 commit 26dfdeeCopy full SHA for 26dfdee
src/murfey/server/api/file_io_frontend.py
@@ -50,10 +50,9 @@ async def create_symlink(
50
instrument_name
51
]
52
symlink_full_path = machine_config.rsync_basepath / symlink_params.symlink
53
- if symlink_full_path.is_symlink():
54
- if symlink_params.override:
55
- symlink_full_path.unlink()
56
- elif symlink_full_path.exists():
+ if symlink_full_path.is_symlink() and symlink_params.override:
+ symlink_full_path.unlink()
+ if symlink_full_path.exists():
57
return ""
58
symlink_full_path.symlink_to(symlink_params.target)
59
return str(symlink_params.symlink)
0 commit comments