diff options
author | B Stack <bgstack15@gmail.com> | 2021-02-15 08:01:37 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-02-15 08:01:37 -0500 |
commit | 1dd461e6abb78354d536ef1e5e54ec6914500459 (patch) | |
tree | c42f46f1aaac6c94f93f922fd661f415a0525273 | |
parent | initial commit (diff) | |
download | s2s-1dd461e6abb78354d536ef1e5e54ec6914500459.tar.gz s2s-1dd461e6abb78354d536ef1e5e54ec6914500459.tar.bz2 s2s-1dd461e6abb78354d536ef1e5e54ec6914500459.zip |
-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: |