We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8d769 commit f84b936Copy full SHA for f84b936
1 file changed
src/local/butler/common.py
@@ -351,7 +351,7 @@ def install_dependencies(platform_name=None):
351
352
def remove_symlink(target):
353
"""Removes a symlink."""
354
- if not os.path.exists(target):
+ if not os.path.lexists(target):
355
return
356
357
if os.path.isdir(target) and get_platform() == 'windows':
@@ -372,7 +372,8 @@ def symlink(src, target):
372
else:
373
os.symlink(src, target)
374
375
- assert os.path.exists(target), f'Failed to create {target} symlink for {src}.'
+ assert os.path.lexists(
376
+ target), f'Failed to create {target} symlink for {src}.'
377
378
print(f'Created symlink: source: {src}, target {target}.')
379
0 commit comments