From 3d43c0ec12cdf339301bf12d3110be0d97edbee6 Mon Sep 17 00:00:00 2001 From: Expo on server Date: Sat, 8 Jul 2023 22:42:06 +0100 Subject: [PATCH] Allow for parent directories to be created when created photos. --- core/views/editor_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/editor_helpers.py b/core/views/editor_helpers.py index 17ae04b..7aa9c75 100644 --- a/core/views/editor_helpers.py +++ b/core/views/editor_helpers.py @@ -95,7 +95,7 @@ def new_image_form(request, path): # Create directories if required for full_path in image_path, thumb_path, desc_path: print(full_path, full_path.parent) - full_path.parent.mkdir(parents=False, exist_ok=True) + full_path.parent.mkdir(parents=True, exist_ok=True) try: change_message = form.cleaned_data["change_message"] write_and_commit(