fix(WVD): Ensure WVDs dir exists before moving WVD file

Fixes #83
This commit is contained in:
rlaphoenix 2024-04-01 18:28:21 +01:00
parent 491a0b3a5a
commit 3659c81d6a
1 changed files with 1 additions and 0 deletions

View File

@ -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}")