From cc3e36c60d3b57d17c9d3de70051c94002b1415f Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 25 Mar 2024 22:54:57 -0700 Subject: [PATCH] Ensure destination exists in ddrescue-tui image --- scripts/wk/clone/state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/wk/clone/state.py b/scripts/wk/clone/state.py index f9badfce..8af31970 100644 --- a/scripts/wk/clone/state.py +++ b/scripts/wk/clone/state.py @@ -348,6 +348,7 @@ class State(): self.destination = pathlib.Path(docopt_args['']).resolve() else: self.destination = menus.select_path('Destination') + self.destination.mkdir(parents=True, exist_ok=True) self.ui.add_title_pane('Destination', self.destination) self.update_top_panes()