diff options
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 6f4b76d0..92838a21 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1086,6 +1086,8 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m data['loading'] = False return path + if not os.path.exists(ranger.args.cachedir): + os.makedirs(ranger.args.cachedir) cacheimg = os.path.join(ranger.args.cachedir, self.sha1_encode(path)) if self.settings.preview_images and \ os.path.isfile(cacheimg) and \ |