diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-09 04:37:19 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-09 04:37:19 +0100 |
commit | c8eae28bfa505b4b9bbe4228312eaca32bb180e8 (patch) | |
tree | ee14eb829d163f99dbb5924533c1ded78676433a | |
parent | 76cc9e06eb6ef7e07e967a76ec3e5a93b2b42410 (diff) | |
download | ranger-c8eae28bfa505b4b9bbe4228312eaca32bb180e8.tar.gz |
Don't create the image cache directory preemptively
Since now this directory is recreated if needed on each use of it, there is no need to create it just because the user has these options enabled on startup.
-rw-r--r-- | ranger/core/main.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index 598ce243..17b546c0 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -145,11 +145,6 @@ def main( from ranger.ext import curses_interrupt_handler curses_interrupt_handler.install_interrupt_handler() - # Create cache directory - if fm.settings.preview_images and fm.settings.use_preview_script: - if not os.path.exists(args.cachedir): - os.makedirs(args.cachedir) - if not args.clean: # Create data directory if not os.path.exists(args.datadir): |