Commit fe46a08f authored by AUTOMATIC's avatar AUTOMATIC
Browse files

add slash to non-empty dirs in extra networks interface

parent 66cfd1dc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -76,6 +76,10 @@ class ExtraNetworksPage:
                while subdir.startswith("/"):
                    subdir = subdir[1:]

                is_empty = len(os.listdir(x)) == 0
                if not is_empty and not subdir.endswith("/"):
                    subdir = subdir + "/"

                subdirs[subdir] = 1

        if subdirs: