Only make output dir when creating output

This commit is contained in:
CookieHCl
2022-10-16 21:59:05 +09:00
committed by AUTOMATIC1111
parent 91235d8008
commit c9836279f5
2 changed files with 4 additions and 7 deletions

View File

@@ -1394,7 +1394,10 @@ def create_ui(wrap_gradio_gpu_call):
component_dict = {}
def open_folder(f):
if not os.path.isdir(f):
if not os.path.exists(f):
print(f"{f} doesn't exist. After you create an image, the folder will be created.")
return
elif not os.path.isdir(f):
print(f"""
WARNING
An open_folder request was made with an argument that is not a folder.