Skip to content

Commit

Permalink
Create szs directory if doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
luckytyphlosion committed Jul 1, 2023
1 parent ffc6c3d commit 3c7f9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wbz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c7f9e2

Please sign in to comment.