From 088a7e4e702a5f0c39a1a972814a6beb7be53aeb Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 2 Jan 2024 12:48:53 -0500 Subject: [PATCH] server: create a misc folder in the datapath This folder contains miscellaneous files used by Moonraker or other applications in the Klipper ecosystem. Signed-off-by: Eric Callahan --- moonraker/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moonraker/server.py b/moonraker/server.py index b296bc3..13db9c2 100755 --- a/moonraker/server.py +++ b/moonraker/server.py @@ -608,6 +608,9 @@ def main(from_package: bool = True) -> None: if not comms_dir.exists(): comms_dir.mkdir() unix_sock = str(comms_dir.joinpath("moonraker.sock")) + misc_dir = data_path.joinpath("misc") + if not misc_dir.exists(): + misc_dir.mkdir() app_args = { "data_path": str(data_path), "is_default_data_path": cmd_line_args.datapath is None,