aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--s2slib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/s2slib.py b/s2slib.py
index 409157e..f0cd9cd 100644
--- a/s2slib.py
+++ b/s2slib.py
@@ -69,6 +69,8 @@ def replace_one_symlink(
# Get preferred name, and strip any " - Shortcut"
pn = os.path.splitext(lnkfile)[:-1][0] # remove the .lnk part, but preserve any other dots
symlink_path = re.sub(' - Shortcut$', "",pn)
+ if linktype == "dir"
+ symlink_path += ".shortcut"
# take action
if debuglevel >= 5:
bgstack15