diff --git a/wbz.py b/wbz.py index c8a6e60..f49a39c 100644 --- a/wbz.py +++ b/wbz.py @@ -97,6 +97,7 @@ def get_output_szs_filepath(input_wbz_filepath, dest_dirname=None): if dest_dirname is None: output_szs_filepath = input_wbz_filepath.with_suffix(".szs") else: + pathlib.Path(dest_dirname).mkdir(parents=True, exist_ok=True) output_szs_filepath = pathlib.Path(f"{dest_dirname}/{input_wbz_filepath.with_suffix('.szs').name}") return output_szs_filepath