diff options
-rwxr-xr-x | later | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -118,9 +118,7 @@ for path, basename, mtime in entries(): print(*output, sep="\t") if write_title_map: - try: - os.mkdir(later_cache_dir) - except FileExistsError: - pass + os.makedirs(later_cache_dir, exist_ok=True) + with open(title_map_file, "w") as handle: json.dump(title_map, handle) |