add slash to non-empty dirs in extra networks interface
This commit is contained in:
parent
66cfd1dcfc
commit
fe46a08f52
@ -76,6 +76,10 @@ class ExtraNetworksPage:
|
|||||||
while subdir.startswith("/"):
|
while subdir.startswith("/"):
|
||||||
subdir = subdir[1:]
|
subdir = subdir[1:]
|
||||||
|
|
||||||
|
is_empty = len(os.listdir(x)) == 0
|
||||||
|
if not is_empty and not subdir.endswith("/"):
|
||||||
|
subdir = subdir + "/"
|
||||||
|
|
||||||
subdirs[subdir] = 1
|
subdirs[subdir] = 1
|
||||||
|
|
||||||
if subdirs:
|
if subdirs:
|
||||||
|
Loading…
Reference in New Issue
Block a user