Fix getDirname description

This commit is contained in:
shortcutme 2017-08-18 14:37:56 +02:00
parent 1db2327b3d
commit 4c7500e248
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -110,7 +110,7 @@ def unpackOnionAddress(packed):
# Get dir from file
# Return: data/site/content.json -> data/site
# Return: data/site/content.json -> data/site/
def getDirname(path):
if "/" in path:
return path[:path.rfind("/") + 1]