"All" tab knock-on bug fix
The addition of the All tab introduced a bug in which an "All" folder is created in the root stable diffusion directory. This PR prevent the folder from being created.pull/200/head
parent
488c5393db
commit
5c28f97770
|
|
@ -1130,7 +1130,7 @@ def create_tab(tab: ImageBrowserTab, current_gr_tab: gr.Tab):
|
|||
|
||||
if standard_ui:
|
||||
dir_name = str(Path(dir_name))
|
||||
if not os.path.exists(dir_name):
|
||||
if not os.path.exists(dir_name) and os.path.basename(os.path.normpath(dir_name)) != "All":
|
||||
os.makedirs(dir_name)
|
||||
|
||||
with gr.Row():
|
||||
|
|
|
|||
Loading…
Reference in New Issue