mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
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("/"):
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user