From d0f85f3d04b9b379ca4af4c88d4ba8b7ca6baa5a Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 3 Oct 2017 16:05:01 +0200 Subject: [PATCH] String / from left during dirname conversion --- src/util/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""