From 036c05c3022b97248fc8159381513e1f74b7c5e9 Mon Sep 17 00:00:00 2001 From: tmpz23 <28760271+tmpz23@users.noreply.github.com> Date: Tue, 18 Jan 2022 07:49:16 +0100 Subject: [PATCH] Update pzztest.py --- pzztest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pzztest.py b/pzztest.py index 31d4d8b..a432c98 100644 --- a/pzztest.py +++ b/pzztest.py @@ -7,7 +7,7 @@ import pzztool import shutil -__version__ = "0.0.1" +__version__ = "0.0.2" __author__ = "rigodron, algoflash, GGLinnk" __license__ = "MIT" __status__ = "developpement" @@ -56,6 +56,9 @@ def get_argparser(): if __name__ == '__main__': + + if unpack_path.is_dir() or repack_path.is_dir(): + raise Exception(f"Error - Please remove:\n-{unpack_path}\n{repack_path}") args = get_argparser().parse_args() p_input = Path(args.input_path)