From 3659c81d6a6fa341777758cc2e491e2aa384c0a4 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 1 Apr 2024 18:28:21 +0100 Subject: [PATCH] fix(WVD): Ensure WVDs dir exists before moving WVD file Fixes #83 --- devine/commands/wvd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/devine/commands/wvd.py b/devine/commands/wvd.py index 36a49b9..2cddae0 100644 --- a/devine/commands/wvd.py +++ b/devine/commands/wvd.py @@ -38,6 +38,7 @@ def add(paths: list[Path]) -> None: else: # TODO: Check for and log errors _ = Device.load(path) # test if WVD is valid + dst_path.parent.mkdir(parents=True, exist_ok=True) shutil.move(path, dst_path) log.info(f"Added {path.stem}")