From 983d4d668f811e3bae1de53fbb23d9924b278bc8 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 26 Nov 2024 06:31:23 +0100 Subject: [PATCH] Automatic upload folder creation if not exists. --- src/rupload/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rupload/app.py b/src/rupload/app.py index b2b6d54..3ffd152 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -287,7 +287,7 @@ def create_app( max_file_size=max_file_size, upload_folder_quota=upload_folder_quota, ) - pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True + pathlib.Path(upload_path).mkdir(parents=True, exist_ok=True) app.add_routes( [ web.get("/", handle_index),