diff --git a/src/util/helper.py b/src/util/helper.py index 4fe6bf0f..4a730ce5 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -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 ""