From 4b037fb18cad8571d699ece6bd20d720ba2e4014 Mon Sep 17 00:00:00 2001 From: Steven Crawford Date: Thu, 12 Dec 2024 13:03:22 -0600 Subject: [PATCH] updates --- split_zip_into_smaller_chunks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/split_zip_into_smaller_chunks.py b/split_zip_into_smaller_chunks.py index 47571e7..a09453e 100755 --- a/split_zip_into_smaller_chunks.py +++ b/split_zip_into_smaller_chunks.py @@ -33,7 +33,7 @@ def can_float(str): def get_max_size(): while True: - mx_group_size = input("Enter the maximum (in GB) zipped file size: ") + mx_group_size = input("Enter the maximum (in GB) zipped file size (2 is default): ").strip() or "2" if can_float(mx_group_size): return float(mx_group_size) else: @@ -83,7 +83,7 @@ def split_zip(input_zip_path, output_folder, max_group_size): # Update the size of the current group group_size += len(file_content.getvalue()) - print(f'Successfully split {input_zip_path} into {group_number} groups.') + print(f'Successfully split {input_zip_path} into {group_number} groups.', end="\r") # Example usage # input_zip_path = 'path/to/your/large.zip'