diff --git a/dff/stats/cli.py b/dff/stats/cli.py index df3050fd4..46a4b9627 100644 --- a/dff/stats/cli.py +++ b/dff/stats/cli.py @@ -281,7 +281,7 @@ def make_zip_config(parsed_args: argparse.Namespace) -> Path: logger.info(f"Saving the archive to {outfile_name}.") shutil.make_archive(outfile_name[: outfile_name.rindex(".zip")], format="zip", root_dir=temp_config_dir) for path in Path(temp_config_dir).iterdir(): - if path != database_dir and path != dataset_dir: + if path.stem != database_dir.stem and path.stem != dataset_dir.stem: if path.is_dir(): shutil.rmtree(path)