String / from left during dirname conversion
This commit is contained in:
parent
49d863fa54
commit
d0f85f3d04
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ def unpackOnionAddress(packed):
|
|||
# Return: data/site/content.json -> data/site/
|
||||
def getDirname(path):
|
||||
if "/" in path:
|
||||
return path[:path.rfind("/") + 1]
|
||||
return path[:path.rfind("/") + 1].lstrip("/")
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue