From 1dd461e6abb78354d536ef1e5e54ec6914500459 Mon Sep 17 00:00:00 2001 From: B Stack Date: Mon, 15 Feb 2021 08:01:37 -0500 Subject: add ".shortcut" ending to directories --- s2slib.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 's2slib.py') 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: -- cgit