diff options
Diffstat (limited to 'imdb-lookup/imdblookup.py')
-rwxr-xr-x | imdb-lookup/imdblookup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py index 9655ce6..f6d7ff5 100755 --- a/imdb-lookup/imdblookup.py +++ b/imdb-lookup/imdblookup.py @@ -153,6 +153,8 @@ class UI(urwid.WidgetWrap): def rename(*_): urwid.disconnect_signal(self.btn_apply, u"click", rename) try: + if not os.path.exists(info["filename"]): + os.mkdir(info["filename"]) shutil.move(self.filename, info["filename"]) except Exception as e: self.view.set_focus("header") |