Skip to content

Commit

Permalink
Ensure out directories are created for exports copying files from cache
Browse files Browse the repository at this point in the history
This could lead to a potential bug if the output directory structure
wasn't created ahead of copying the cached version of the file.
  • Loading branch information
shello committed Feb 12, 2020
1 parent d543128 commit 9be109c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions export_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9be109c

Please sign in to comment.