Skip to content

Commit

Permalink
fix(WVD): Ensure WVDs dir exists before moving WVD file
Browse files Browse the repository at this point in the history
Fixes #83
  • Loading branch information
rlaphoenix committed Apr 1, 2024
1 parent 491a0b3 commit 3659c81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions devine/commands/wvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 3659c81

Please sign in to comment.