aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2021-02-15 08:01:37 -0500
committerB Stack <bgstack15@gmail.com>2021-02-15 08:01:37 -0500
commit1dd461e6abb78354d536ef1e5e54ec6914500459 (patch)
treec42f46f1aaac6c94f93f922fd661f415a0525273
parentinitial commit (diff)
downloads2s-1dd461e6abb78354d536ef1e5e54ec6914500459.tar.gz
s2s-1dd461e6abb78354d536ef1e5e54ec6914500459.tar.bz2
s2s-1dd461e6abb78354d536ef1e5e54ec6914500459.zip
add ".shortcut" ending to directoriesHEADmaster
-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