Ensure destination exists in ddrescue-tui image

This commit is contained in:
2Shirt 2024-03-25 22:54:57 -07:00
parent f91eac3ec3
commit cc3e36c60d
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -348,6 +348,7 @@ class State():
self.destination = pathlib.Path(docopt_args['<destination>']).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()