"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
Ezekiel-Rage 2023-06-05 13:31:21 -07:00 committed by GitHub
parent 488c5393db
commit 5c28f97770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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():