Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

fix makedirs on save

m957ymj75urz70f9bd1408ef
diff --git a/nodes.py b/nodes.py
index d7708e34f..7a37342f7 100644
--- a/nodes.py
+++ b/nodes.py
@@ -809,7 +809,7 @@ class SaveImage:
except ValueError:
counter = 1
except FileNotFoundError:
- os.mkdir(outputDirectory)
+ os.makedirs(outputDirectory, exist_ok=True)
counter = 1
paths = list()