Fix getDirname description
This commit is contained in:
parent
1db2327b3d
commit
4c7500e248
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue