From 9be109cd3071c00615377356a63344dacf2a603f Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Wed, 12 Feb 2020 19:02:41 +0000 Subject: [PATCH] Ensure out directories are created for exports copying files from cache This could lead to a potential bug if the output directory structure wasn't created ahead of copying the cached version of the file. --- export_thread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/export_thread.py b/export_thread.py index 02e3d64..162d025 100644 --- a/export_thread.py +++ b/export_thread.py @@ -153,6 +153,7 @@ def run(self): final_path = dest_paths.format_path(self.path, emoji, f) cache_hit = False if self.cache: + dest_paths.make_dir_structure_for_file(final_path) cache_hit = self.cache.load_from_cache(emoji, f, final_path) if not cache_hit: