diff options
-rw-r--r-- | s2slib.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |