minor fix to only remove trailing slash if there is content at all in sig_bit of SymlinkName
This commit is contained in:
@@ -33,7 +33,7 @@ def SymlinkName(path, file):
|
|||||||
sig_bit=file.replace(path, "")
|
sig_bit=file.replace(path, "")
|
||||||
last_dir=os.path.basename(path[0:-1])
|
last_dir=os.path.basename(path[0:-1])
|
||||||
|
|
||||||
if sig_bit[-1] == '/':
|
if len(sig_bit) > 0 and sig_bit[-1] == '/':
|
||||||
last_bit = os.path.dirname(sig_bit)[0:-1]
|
last_bit = os.path.dirname(sig_bit)[0:-1]
|
||||||
else:
|
else:
|
||||||
last_bit = os.path.dirname(sig_bit)
|
last_bit = os.path.dirname(sig_bit)
|
||||||
|
|||||||
Reference in New Issue
Block a user