Commit f6762d2a authored by Tom Haelbich's avatar Tom Haelbich

dir buttons start with / so only the correct dir will be shown and not dirs...

dir buttons start with / so only the correct dir will be shown and not dirs with a substrings as name from the dir
parent 4afaaf8a
......@@ -138,8 +138,9 @@ class ExtraNetworksPage:
continue
subdir = os.path.abspath(x)[len(parentdir):].replace("\\", "/")
while subdir.startswith("/"):
subdir = subdir[1:]
if not subdir.startswith("/"):
subdir = "/" + subdir
is_empty = len(os.listdir(x)) == 0
if not is_empty and not subdir.endswith("/"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment