Ensure destination exists in ddrescue-tui image
This commit is contained in:
parent
f91eac3ec3
commit
cc3e36c60d
1 changed files with 1 additions and 0 deletions
|
|
@ -348,6 +348,7 @@ class State():
|
||||||
self.destination = pathlib.Path(docopt_args['<destination>']).resolve()
|
self.destination = pathlib.Path(docopt_args['<destination>']).resolve()
|
||||||
else:
|
else:
|
||||||
self.destination = menus.select_path('Destination')
|
self.destination = menus.select_path('Destination')
|
||||||
|
self.destination.mkdir(parents=True, exist_ok=True)
|
||||||
self.ui.add_title_pane('Destination', self.destination)
|
self.ui.add_title_pane('Destination', self.destination)
|
||||||
self.update_top_panes()
|
self.update_top_panes()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue