Commit f6762d2a authored by Tom Haelbich's avatar Tom Haelbich
Browse files

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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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("/"):